diff options
author | Giuseppe Marcelli <giuseppem+bitbucket@gmail.com> | 2017-05-10 02:12:31 +0200 |
---|---|---|
committer | Giuseppe Marcelli <giuseppem+bitbucket@gmail.com> | 2017-05-10 02:12:31 +0200 |
commit | 8233b1d6fc56347195b3a0411806e197e2e59ad3 (patch) | |
tree | d58124a4b37b30e0b7bbd122107c6b0bebbafa96 /system/database | |
parent | 3bb650404199a3cf3ae427a42086c4f6e79a86c1 (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/database')
-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 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(); } |