Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / modules / guest / what-login.php
index 3aeef30560b4e2d5992cdce9bbd017876988ff27..ecf3887652dca4f3893b9ecaef704fce1e4468be 100644 (file)
@@ -64,11 +64,11 @@ if ((!empty($GLOBALS['userid'])) && (isSessionVariableSet('u_hash')))
        }
 } elseif (!empty($_POST['new_pass'])) {
        // New password requested
-       $UID = "0";
+       $UID = 0;
        if (!empty($_POST['id'])) $UID = $_POST['id'];
 } else {
        // Not logged in
-       $UID = "0"; $hash = "";
+       $UID = 0; $hash = "";
 }
 
 $URL = ""; $ADD = "";
@@ -229,7 +229,7 @@ if (IS_MEMBER()) {
        if (!empty($_POST['email'])) $_POST['email'] = str_replace("{DOT}", '.', $_POST['email']);
 
        // Set ID number when left empty
-       if (empty($_POST['id'])) $_POST['id'] = "0";
+       if (empty($_POST['id'])) $_POST['id'] = 0;
 
        // Probe userid/nickname
        $probe_nickname = ((EXT_IS_ACTIVE("nickname")) && (("".round($_POST['id'])."") != $_POST['id']));