]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Refback and referal points hopefully fixed:
[mailer.git] / inc / wrapper-functions.php
index 4e235f5017f328826646ee982577b6540d444d5b..46822ca578fcfc563ac60e7a6b2a074282759256 100644 (file)
@@ -949,6 +949,7 @@ function initUserData () {
        } // END - if
 
        // Init the user
+       unset($GLOBALS['is_userdata_valid'][getCurrentUserId()]);
        $GLOBALS['user_data'][getCurrentUserId()] = array();
 }
 
@@ -1009,7 +1010,9 @@ function getUserDataArray () {
 // in, but you should use isMember() if you want to find that out.
 function isUserDataValid () {
        // User id should not be zero so abort here
-       if (!isCurrentUserIdSet()) return false;
+       if (!isCurrentUserIdSet()) {
+               return false;
+       } // END - if
 
        // Is it cached?
        if (!isset($GLOBALS['is_userdata_valid'][getCurrentUserId()])) {