From: Roland Häder Date: Sat, 25 Jun 2011 05:14:29 +0000 (+0000) Subject: Missing variable fixed, array initialization moved X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=4b8f04b322785cd4894080ded133e708f28fb91b Missing variable fixed, array initialization moved --- 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) { diff --git a/inc/modules/member/what-points.php b/inc/modules/member/what-points.php index d83e597a0b..15bc77867a 100644 --- a/inc/modules/member/what-points.php +++ b/inc/modules/member/what-points.php @@ -109,7 +109,7 @@ LIMIT 1", } // END - if // Free result - SQL_FREERESULT($result_refs); + SQL_FREERESULT($result_points); // Output row $OUT .= loadTemplate('member_points_row', true, $content);