diff options
author | Juan Ignacio Borda <juanignacioborda@gmail.com> | 2012-05-19 14:33:07 +0200 |
---|---|---|
committer | Juan Ignacio Borda <juanignacioborda@gmail.com> | 2012-05-19 14:33:07 +0200 |
commit | fece884ea610485425208c648ba207fa43593e8b (patch) | |
tree | 84d60a844d2736cfd01f40c72db0bd432c2b7fb4 /system/database | |
parent | d981e2915cbd37f866e6f74c3a86a41e8a43e02e (diff) |
Fixed return line and comments
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_result.php | 11 |
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(); + } // -------------------------------------------------------------------- |