]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-mydata.php
'userid' rewritten to functions
[mailer.git] / inc / modules / member / what-mydata.php
index 2db92cb197e4b3ce6f37053a92b3327cef46d287..d29449aeb84842fd85c991cc2e47c445551ad4c1 100644 (file)
@@ -50,7 +50,7 @@ if (!defined('__SECURITY')) {
 // Add description as navigation point
 ADD_DESCR("member", __FILE__);
 
-define('UID_VALUE', $GLOBALS['userid']); $URL = "";
+define('UID_VALUE', getUserId()); $URL = "";
 
 // Detect what the member wants to do
 $MODE = "show"; // Show his data
@@ -294,7 +294,7 @@ array(
 
 case "notify": // Switch off notfication
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET notified='N', last_update=UNIX_TIMESTAMP() WHERE userid=%s LIMIT 1",
-               array($GLOBALS['userid']), __FILE__, __LINE__);
+               array(getUserId()), __FILE__, __LINE__);
        $URL = "modules.php?module=login&what=welcome&msg=".urlencode(getMessage('PROFILE_UPDATED'));
        break;
 }