X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=9d61c0cf94b87eff600170d7aa895944e83ddc34;hb=66ef19610daf4eff3fb395b4908d44d5c9a96b00;hp=2ad98e13dab1434b5319428a77be691e02c36272;hpb=9f6c30cc0e06098171d773d671292081ecee3d29;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 2ad98e13da..9d61c0cf94 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -727,9 +727,12 @@ function getUserData ($column) { } // Geter for whole user data array -function gerUserDataArray () { +function getUserDataArray () { + // User id should not be zero + if (getCurrentUserId() == 0) debug_report_bug('User id is zero.'); + // Get the whole array - return $GLOBALS['user_data']; + return $GLOBALS['user_data'][getCurrentUserId()]; } // Checks if the user data is valid, this may indicate that the user has logged