From 58e1c00275ecbe40c1fb27271650e75f80f0cf1d Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 26 Feb 2014 18:51:18 +0200 Subject: More removal of error suppression usage --- system/database/DB_driver.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'system/database/DB_driver.php') diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 7551e4896..ad9e31fc4 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1577,16 +1577,13 @@ abstract class CI_DB_driver { */ protected function _cache_init() { - if (class_exists('CI_DB_Cache', FALSE)) + if ( ! class_exists('CI_DB_Cache', FALSE)) { - if (is_object($this->CACHE)) - { - return TRUE; - } + require_once(BASEPATH.'database/DB_cache.php'); } - elseif ( ! @include_once(BASEPATH.'database/DB_cache.php')) + elseif (is_object($this->CACHE)) { - return $this->cache_off(); + return TRUE; } $this->CACHE = new CI_DB_Cache($this); // pass db object to support multiple db connections and returned db objects -- cgit v1.2.3-24-g4f1b