From 50c9ea154c125f5ce1a2d0384470f4e71188d628 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 7 Nov 2014 16:57:41 +0200 Subject: Fix #3317 ... MCrypt sucks --- system/libraries/Encryption.php | 1 + 1 file changed, 1 insertion(+) (limited to 'system/libraries/Encryption.php') diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index fe8434c46..2a28714f5 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -212,6 +212,7 @@ class CI_Encryption { log_message('debug', "Encryption: Auto-configured driver '".$this->_driver."'."); } + empty($params['cipher']) && $params['cipher'] = $this->_cipher; empty($params['key']) OR $this->_key = $params['key']; $this->{'_'.$this->_driver.'_initialize'}($params); return $this; -- cgit v1.2.3-24-g4f1b