]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-welcome.php
Some minor rewrites
[mailer.git] / inc / modules / member / what-welcome.php
index 82e42d8691fc0f6c1d5ebb67effb5078fec80323..7d7e91e5dc83ec01fa645ac50ae969cc35e134e2 100644 (file)
@@ -55,7 +55,7 @@ $content = array(
 loadTemplate('member_welcome_header', false, $content);
 
 // Chedk if he is returning from a profile update notification
-$result = SQL_QUERY_ESC("SELECT userid FROM `{?_MYSQL_PREFIX?}_user_data` WHERE notified='Y' AND `userid`=%s LIMIT 1",
+$result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `notified`='Y' AND `userid`=%s LIMIT 1",
        array(getMemberId()), __FILE__, __LINE__);
 
 if ((SQL_NUMROWS($result) == 1) && (isExtensionActive('profile'))) {