debug_report_bug() was to strict here
authorRoland Häder <roland@mxchange.org>
Mon, 30 Nov 2009 18:26:56 +0000 (18:26 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 30 Nov 2009 18:26:56 +0000 (18:26 +0000)
inc/functions.php

index 921cda0aea979a1322e5097f2c3fc18413a9ed07..e3d3f20f8ccb15551a467b5741273d08a7d67282 100644 (file)
@@ -2227,8 +2227,8 @@ function generatePassString ($passHash) {
        if ((isExtensionInstalled('sql_patches')) && (isConfigEntrySet('_PRIME')) && (isConfigEntrySet('secret_key')) && (isConfigEntrySet('master_salt'))) {
                // Only calculate when the secret key is generated
                if (strlen($passHash) != getConfig('secret_key')) {
-                       // Both keys must have same length
-                       debug_report_bug('Hash lengths do not match! (' . strlen($passHash) . '!=' . strlen(getConfig('secret_key')) . ')');
+                       // Both keys must have same length so return unencrypted
+                       return $ret;
                } // END - if
 
                $newHash = ''; $start = 9;