diff options
author | Masterklavi <masterklavi@gmail.com> | 2016-07-31 00:25:56 +0200 |
---|---|---|
committer | Masterklavi <masterklavi@gmail.com> | 2016-07-31 00:25:56 +0200 |
commit | 4a0ed97e26101bb5346972d2486668e1b5dfa561 (patch) | |
tree | c43c6ec38eedf898435e3e882c8b9d21ac2a1890 | |
parent | 12117be8293eff1a56b575ccc2e5d11c68c8cfcf (diff) |
Changed the return value of CI_DB_result::_fetch_object(..) to object
-rw-r--r-- | system/database/DB_result.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php index d9d1fccc7..4e2429376 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php @@ -660,7 +660,7 @@ class CI_DB_result { */ protected function _fetch_object($class_name = 'stdClass') { - return array(); + return new $class_name(); } } |