X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid.php;h=1f38c5b15e389657dcb381c26aad371b7ad2c4f5;hp=dcd0208ad0247cb47df77dee388cbd3e6d08ace6;hb=26ea563a90454a2cde58f8cd134542a0d8f14780;hpb=3925d2168d4740ced8ea4e510a525ed4743c8f4f diff --git a/mailid.php b/mailid.php index dcd0208ad0..1f38c5b15e 100644 --- a/mailid.php +++ b/mailid.php @@ -89,10 +89,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr if (SQL_NUMROWS($result_link) == 1) { // Load the entry - list($ltype) = SQL_FETCHROW($result); - - // Clean result - SQL_FREERESULT($result); + list($ltype) = SQL_FETCHROW($result_link); // @TODO Rewrite this to a filter switch ($ltype) { @@ -196,17 +193,17 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr $errorCode = getCode('ACCOUNT_' . $status); } } else { - SQL_FREERESULT($result); $errorCode = getCode('USER_404'); } } else { - SQL_FREERESULT($result); $errorCode = getCode('STATS_404'); } } else { - SQL_FREERESULT($result); $errorCode = getCode('ALREADY_CONFIRMED'); } + + // Free result + SQL_FREERESULT($result_link); } else { // Nothing entered $errorCode = getCode('ERROR_MAILID');