diff --git a/functions.inc.php b/functions.inc.php index ab345b57..781f2fb5 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1086,6 +1086,8 @@ function _pacrypt_php_crypt($pw, $pw_db) { * @return string */ function _php_crypt_generate_crypt_salt($hash_type='SHA512') { + global $CONF; + // generate a salt (with magic matching chosen hash algorithm) for the PHP crypt() function // most commonly used alphabet