]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-login.php
'userid' rewritten to functions
[mailer.git] / inc / modules / guest / what-login.php
index e8b3dfc6a9206d1c33318f01348ad774892f45ef..2233e0c499e8017bf3b5cf23f5323bde8e205c9f 100644 (file)
@@ -60,9 +60,9 @@ $URL = "";
 $ADD = "";
 
 // Already logged in?
-if ((!empty($GLOBALS['userid'])) && (isSessionVariableSet('u_hash'))) {
+if ((isUserIdSet()) && (isSessionVariableSet('u_hash'))) {
        // Maybe, then continue with it
-       $uid = $GLOBALS['userid'];
+       $uid = getUserId();
 } elseif ((REQUEST_ISSET_POST(('id'))) && (REQUEST_ISSET_POST(('password'))) && (IS_FORM_SENT())) {
        // Set userid and crypt password when login data was submitted
        if ((EXT_IS_ACTIVE("nickname")) && (NICKNAME_PROBE_ON_USERID(REQUEST_POST('id')))) {