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) {
SQL_FREERESULT($result);
$errorCode = getCode('ALREADY_CONFIRMED');
}
+
+ // Free result
+ SQL_FREERESULT($result_link);
} else {
// Nothing entered
$errorCode = getCode('ERROR_MAILID');