Cleanups and all "base scripts" fixed:
[mailer.git] / inc / modules / guest / what-login.php
index f45d269bced5f62349c3150e6a34dcbd66f633ca..60228452a64087e401424d8b2d586f4a6ad6044f 100644 (file)
@@ -100,7 +100,7 @@ if (isMember()) {
 } elseif (isFormSent()) {
        // Try the login (see inc/libs/user_functions.php)
        $url = doUserLogin(postRequestElement('id'), postRequestElement('password'));
-} elseif ((isPostRequestElementSet('new_pass')) && (isset($userid))) {
+} elseif ((isPostRequestElementSet('new_pass')) && (!empty($userid))) {
        // Try the userid/email lookup (see inc/libs/user_functions.php)
        $errorCode = doNewUserPassword(postRequestElement('email'), $userid);
 }