X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=lead-confirm.php;h=9e4d790b94fdc5dd372663dd8b9a99c0d705be6c;hp=fc693eea44b6b9ae96ddb0b5561657439874d5c4;hb=a12bb20268fe0d586c434eea2c1fdf9c65a45bbb;hpb=2ec9007220186d54f84846871ed1f7638c29baf7 diff --git a/lead-confirm.php b/lead-confirm.php index fc693eea44..9e4d790b94 100644 --- a/lead-confirm.php +++ b/lead-confirm.php @@ -72,7 +72,7 @@ $content = array( // Is the cookie set? if (isSessionVariableSet('lead_uid')) { // Is the user-account unlocked and valid? - $result = SQL_QUERY_ESC("SELECT email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s AND `status`='CONFIRMED' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `email` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `userid`=%s AND `status`='CONFIRMED' LIMIT 1", array(bigintval(getSession('lead_uid'))), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Secure the ID number