X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=9d61c0cf94b87eff600170d7aa895944e83ddc34;hb=16de7d9e8b98108627db01688bc095240b5ba8d2;hp=aa7b6a0218667ddee3c6af8257d6c3e5232d826f;hpb=dc48c8d18b395c1bf2147baadbecd056f843b818;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index aa7b6a0218..9d61c0cf94 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -728,8 +728,11 @@ function getUserData ($column) { // Geter for whole user data array 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