summaryrefslogtreecommitdiffstats
path: root/system/core/compat/hash.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/compat/hash.php')
-rw-r--r--system/core/compat/hash.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/compat/hash.php b/system/core/compat/hash.php
index 6d4a0c19a..d567d0f80 100644
--- a/system/core/compat/hash.php
+++ b/system/core/compat/hash.php
@@ -119,8 +119,7 @@ if ( ! function_exists('hash_pbkdf2'))
*/
function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE)
{
- $algo = strtolower($algo);
- if ( ! in_array($algo, hash_algos(), TRUE))
+ if ( ! in_array(strtolower($algo), hash_algos(), TRUE))
{
trigger_error('hash_pbkdf2(): Unknown hashing algorithm: '.$algo, E_USER_WARNING);
return FALSE;