diff options
-rw-r--r-- | system/libraries/Encryption.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index 3ce9f1b95..bfc1e892a 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -845,7 +845,7 @@ class CI_Encryption { return FALSE; } - isset($salt) OR $salt = str_repeat("\0", $this->_digests[$digest]); + strlen($salt) OR $salt = str_repeat("\0", $this->_digests[$digest]); $prk = hash_hmac($digest, $key, $salt, TRUE); $key = ''; |