'userid' rewritten to functions
[mailer.git] / inc / modules / member / what-welcome.php
index 9b9fdccedfdc291fdde9a1ca96ea3bd4cf0e0ae7..8086c002e20ec95d733c67056b705ba10adba717 100644 (file)
@@ -56,7 +56,7 @@ LOAD_TEMPLATE("member_welcome_header");
 
 // 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",
-       array($GLOBALS['userid']), __FILE__, __LINE__);
+       array(getUserId()), __FILE__, __LINE__);
 
 if ((SQL_NUMROWS($result) == 1) && (EXT_IS_ACTIVE("profile"))) {
        // Yes, he is so let's place him his wanted buttons