} // END - if
// Init the user
+ unset($GLOBALS['is_userdata_valid'][getCurrentUserId()]);
$GLOBALS['user_data'][getCurrentUserId()] = array();
}
// 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()])) {