X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=c6d6d4b1d82243f527530944c780c189510361c5;hp=e568da44e2658b592d23434a043d680212fdfadd;hb=e46fa203829954370ce793156c78ce5c4600d020;hpb=eab9ec14d0d794508d7bf901e81ed9ae99dbd6d2 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index e568da44e2..c6d6d4b1d8 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -824,8 +824,11 @@ function getUserDataArray () { // Get user id $uid = getCurrentUserId(); - // User id should not be zero - if ($uid < 1) debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.'); + // Is the current userid valid? + if (!isValidUserId($uid)) { + // Should be always valid + debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.'); + } // END - if // Get the whole array if found if (isset($GLOBALS['user_data'][$uid])) {