diff options
author | Andrey Andreev <narf@devilix.net> | 2015-03-12 11:42:00 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-03-12 11:42:00 +0100 |
commit | 34b92c6c058a27fda4572f16af41340e0b46f4df (patch) | |
tree | 260f6e9aada3b3ceb523f636bc672792bcefb241 /system/libraries/Session | |
parent | 4fa5c4d30057525c9d16cf583aabbb5e6f8bb8bb (diff) |
Throw an exception on invalid session driver config
Diffstat (limited to 'system/libraries/Session')
-rw-r--r-- | system/libraries/Session/Session.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php index f3b819af9..54d31ee1a 100644 --- a/system/libraries/Session/Session.php +++ b/system/libraries/Session/Session.php @@ -94,10 +94,7 @@ class CI_Session { $this->_driver = 'database'; } - if (($class = $this->_ci_load_classes($this->_driver)) === FALSE) - { - return; - } + $class = $this->_ci_load_classes($this->_driver); // Configuration ... $this->_configure($params); @@ -230,8 +227,7 @@ class CI_Session { if ( ! class_exists('CI_'.$class, FALSE) && ! class_exists($class, FALSE)) { - log_message('error', "Session: Configured driver '".$driver."' was not found. Aborting."); - return FALSE; + throw new \UnexpectedValueException("Session: Configured driver '".$driver."' was not found. Aborting."); } } |