]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Another fix for RNG
[mailer.git] / inc / functions.php
index b3b990a3426f61c303d582a69f97807eacd61f76..fce1f0ab6e0e727d34263d390a064b763d24f575 100644 (file)
@@ -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