diff options
author | admin <devnull@localhost> | 2006-10-22 03:30:50 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-22 03:30:50 +0200 |
commit | 36e644241623461d6ac9531bdc5a61ee40b28be4 (patch) | |
tree | d1f5573a2f5505687417f60c9cce85f5baf23232 /system/database | |
parent | e334c472fb4be44feec3a73402fc4a2b062cbfc0 (diff) |
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_driver.php | 2 | ||||
-rw-r--r-- | system/database/DB_result.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index ab8a6a8e2..61f0d307f 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -234,9 +234,9 @@ class CI_DB_driver { { if ($this->_cache_init()) { + $this->load_rdriver(); if (FALSE !== ($cache = $this->CACHE->read($sql))) { - $this->load_rdriver(); return $cache; } } diff --git a/system/database/DB_result.php b/system/database/DB_result.php index 44f166d21..7553c167f 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php @@ -63,7 +63,7 @@ class CI_DB_result { return $this->result_object; } - if ($this->numerous == 0) + if ($this->num_rows == 0) { return array(); } |