From: Roland Häder Date: Fri, 30 Oct 2009 09:54:26 +0000 (+0000) Subject: Another fix for RNG X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=97d128c475f7aef98f7f1fa5be14e368aa04c061 Another fix for RNG --- diff --git a/inc/functions.php b/inc/functions.php index b3b990a342..fce1f0ab6e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2036,7 +2036,7 @@ function generateEmailLink ($email, $table = 'admins') { // Generate a hash for extra-security for all passwords function generateHash ($plainText, $salt = '') { // Is the required extension 'sql_patches' there and a salt is not given? - if (((isExtensionInstalledAndOlder('sql_patches', '0.3.6')) || (!isExtensionActive('sql_patches'))) && (empty($salt))) { + if (((isExtensionInstalledAndOlder('sql_patches', '0.3.6')) || (!isExtensionActive('sql_patches')) || (!isExtensionInstalledAndNewer('other', '0.2.5'))) && (empty($salt))) { // Extension sql_patches is missing/outdated so we hash the plain text with MD5 return md5($plainText); } // END - if