We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d981e29 commit fece884Copy full SHA for fece884
system/database/DB_result.php
@@ -373,17 +373,12 @@ public function previous_row($type = 'object')
373
/**
374
* Returns an unbuffered row and move pointer to next row
375
*
376
- * @return object
+ * @return mixed either a result object or array
377
*/
378
public function unbuffered_row($type = 'object')
379
{
380
- if ($type == 'object')
381
- {
382
- return $this->_fetch_object();
383
- } else
384
385
- return $this->_fetch_assoc();
386
- }
+ return ($type !== 'array') ? $this->_fetch_object() : $this->_fetch_assoc();
+
387
}
388
389
// --------------------------------------------------------------------
0 commit comments