From 8233b1d6fc56347195b3a0411806e197e2e59ad3 Mon Sep 17 00:00:00 2001 From: Giuseppe Marcelli Date: Wed, 10 May 2017 02:12:31 +0200 Subject: 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 --- system/database/DB_result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database/DB_result.php') 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(); } -- cgit v1.2.3-24-g4f1b