Possible fix
authorRoland Häder <roland@mxchange.org>
Tue, 17 Nov 2009 20:27:19 +0000 (20:27 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 17 Nov 2009 20:27:19 +0000 (20:27 +0000)
inc/modules/guest/what-login.php

index 4db7500..94904e1 100644 (file)
@@ -73,7 +73,7 @@ if ((isMemberIdSet()) && (isSessionVariableSet('u_hash'))) {
 } elseif (isPostRequestElementSet('new_pass')) {
        // New password requested
        $userid = '0';
-       if (isPostRequestElementSet('id')) $userid = bigintval(postRequestElement('id'));
+       if ((isPostRequestElementSet('id')) && (postRequestElement('id') > 0)) $userid = bigintval(postRequestElement('id'));
 } else {
        // Not logged in
        $userid = '0'; $hash = '';