X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Frallye_functions.php;h=56230b9022fba02148d2d21f6bcd3c7a1981015b;hp=4fbc604ad9172a2b642901f00183e75c12ef4b37;hb=4b8f04b322785cd4894080ded133e708f28fb91b;hpb=391c98ab7233ff3e640d8b9fad8df92ce45e9b31 diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php index 4fbc604ad9..56230b9022 100644 --- a/inc/libs/rallye_functions.php +++ b/inc/libs/rallye_functions.php @@ -444,9 +444,6 @@ function markReferalRallyesAsExpired ($result) { // Free result SQL_FREERESULT($result); - // Load users array (!) with assigned prices - $prices = getArrayFromReferalRallyeUsers($id); - // Init array $DATA = array(); $count = '0'; @@ -456,6 +453,9 @@ function markReferalRallyesAsExpired ($result) { $DATA['end'] = generateDateTime($end , 1); $DATA['now_t'] = generateDateTime(time(), 1); + // Load users array (!) with assigned prices + $prices = getArrayFromReferalRallyeUsers($id); + // Just count... $total = '0'; foreach ($prices['userid'] as $key => $userid) {