summaryrefslogtreecommitdiffstats
path: root/system/database/DB_result.php
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-07-31 00:25:56 +0200
committerMasterklavi <masterklavi@gmail.com>2016-07-31 00:25:56 +0200
commit4a0ed97e26101bb5346972d2486668e1b5dfa561 (patch)
treec43c6ec38eedf898435e3e882c8b9d21ac2a1890 /system/database/DB_result.php
parent12117be8293eff1a56b575ccc2e5d11c68c8cfcf (diff)
Changed the return value of CI_DB_result::_fetch_object(..) to object
Diffstat (limited to 'system/database/DB_result.php')
-rw-r--r--system/database/DB_result.php2
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();
}
}