Missing variable fixed, array initialization moved
authorRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2011 05:14:29 +0000 (05:14 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2011 05:14:29 +0000 (05:14 +0000)
inc/libs/rallye_functions.php
inc/modules/member/what-points.php

index 4fbc604ad9172a2b642901f00183e75c12ef4b37..56230b9022fba02148d2d21f6bcd3c7a1981015b 100644 (file)
@@ -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) {
index d83e597a0b820624b68c4a1d973287f129e5feab..15bc77867ae86ab1802b8ac6de3cbcc73874f041 100644 (file)
@@ -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);