X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=46822ca578fcfc563ac60e7a6b2a074282759256;hp=4e235f5017f328826646ee982577b6540d444d5b;hb=ed3a88c0334600c7d7246480008c79716aa3f80b;hpb=3cf256f9324419b7ae71b035993c2aba36b05d0c diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 4e235f5017..46822ca578 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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()])) {