summaryrefslogtreecommitdiffstats
path: root/system/database/DB_result.php
diff options
context:
space:
mode:
authorJuan Ignacio Borda <juanignacioborda@gmail.com>2012-05-19 14:33:07 +0200
committerJuan Ignacio Borda <juanignacioborda@gmail.com>2012-05-19 14:33:07 +0200
commitfece884ea610485425208c648ba207fa43593e8b (patch)
tree84d60a844d2736cfd01f40c72db0bd432c2b7fb4 /system/database/DB_result.php
parentd981e2915cbd37f866e6f74c3a86a41e8a43e02e (diff)
Fixed return line and comments
Diffstat (limited to 'system/database/DB_result.php')
-rw-r--r--system/database/DB_result.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 574cd9858..25b4fb911 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -373,17 +373,12 @@ class CI_DB_result {
/**
* Returns an unbuffered row and move pointer to next row
*
- * @return object
+ * @return mixed either a result object or array
*/
public function unbuffered_row($type = 'object')
{
- if ($type == 'object')
- {
- return $this->_fetch_object();
- } else
- {
- return $this->_fetch_assoc();
- }
+ return ($type !== 'array') ? $this->_fetch_object() : $this->_fetch_assoc();
+
}
// --------------------------------------------------------------------