summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorGiuseppe Marcelli <giuseppem+bitbucket@gmail.com>2017-05-10 02:12:31 +0200
committerGiuseppe Marcelli <giuseppem+bitbucket@gmail.com>2017-05-10 02:12:31 +0200
commit8233b1d6fc56347195b3a0411806e197e2e59ad3 (patch)
treed58124a4b37b30e0b7bbd122107c6b0bebbafa96 /system
parent3bb650404199a3cf3ae427a42086c4f6e79a86c1 (diff)
Commit 4763c13c99eab2a720a4d6d913902e5cef4e76ec does not allow anymore to use the custom result object against cached database results, fixing this, for more info see issue 4665,1351
Diffstat (limited to 'system')
-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 98d8876a7..ed1642bdc 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -183,7 +183,7 @@ class CI_DB_result {
{
return $this->custom_result_object[$class_name];
}
- elseif ( ! $this->result_id OR $this->num_rows === 0)
+ elseif ($this->result_id === FALSE OR $this->num_rows === 0)
{
return array();
}