]> git.mxchange.org Git - mailer.git/commitdiff
More rewrites
authorRoland Häder <roland@mxchange.org>
Sat, 31 Oct 2009 15:16:44 +0000 (15:16 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 31 Oct 2009 15:16:44 +0000 (15:16 +0000)
mailid.php

index dcd0208ad0247cb47df77dee388cbd3e6d08ace6..58142edba2336e8de31e3be5713cf08b9d95b18c 100644 (file)
@@ -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) {
@@ -207,6 +204,9 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr
                SQL_FREERESULT($result);
                $errorCode = getCode('ALREADY_CONFIRMED');
        }
+
+       // Free result
+       SQL_FREERESULT($result_link);
 } else {
        // Nothing entered
        $errorCode = getCode('ERROR_MAILID');