Code-style applied, surfbar URLs can now be edited
[mailer.git] / inc / libs / rallye_functions.php
index ad8d6c5f15139b4ee33102c70a208d6ace4d4dcf..d6aaef96f8b3ced669a4605a8e559013dce3ee34 100644 (file)
@@ -352,7 +352,7 @@ function RALLYE_EXPIRE_RALLYES($result)
 
        // Just count...
        $TOTAL = 0;
-       foreach($prices['uid'] as $key=>$uid)
+       foreach($prices['uid'] as $key => $uid)
        {
                // Check status
                //   active = 1: account is still confirmed
@@ -384,7 +384,7 @@ LIMIT 1", array(bigintval($uid), $since), __FILE__, __LINE__);
         array(bigintval($id)), __FILE__, __LINE__);
 
        // Run array through (by uid is the most important 2nd-level-array)
-       foreach($prices['uid'] as $key=>$uid)
+       foreach($prices['uid'] as $key => $uid)
        {
                // Allow valid and active users with at least one ref to get points
                if (($uid > 0) && ($prices['ref'][$key] > 0) && ($prices['active'][$key] == 1) && ($prices['cpoints'][$key] > 0))
@@ -569,7 +569,7 @@ WHERE d.status='CONFIRMED' AND d.max_mails > 0 AND d.mails_confirmed >= %s AND p
        $prices = RALLYE_LOAD_PRICES_ARRAY($rallye);
 
        // Merge users into prices
-       foreach ($prices['level'] as $k=>$lvl)
+       foreach ($prices['level'] as $k => $lvl)
        {
                $prices['uid'][$k]  = $users['uid'][$k];
                if (empty($prices['uid'][$k])) $prices['uid'][$k]  = "---";
@@ -748,7 +748,7 @@ function RALLYE_GET_REFCOUNT($uid, $old=0)
        {
                // Get refs from cache
                $cnt = 0;
-               foreach ($cacheArray['ref_system']['userid'] as $id=>$u_id)
+               foreach ($cacheArray['ref_system']['userid'] as $id => $u_id)
                {
                        if (($u_id == $uid) && ($cacheArray['ref_system']['level'][$id] == 0))
                        {