]> git.mxchange.org Git - mailer.git/commitdiff
Sort reversed
authorRoland Häder <roland@mxchange.org>
Fri, 22 Jun 2012 00:05:44 +0000 (00:05 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Jun 2012 00:05:44 +0000 (00:05 +0000)
inc/referral-functions.php

index 9d5146c85c5b032bac989559c42f535237a26f70..087914d9ac282395b09418b8db1e5a3d8ef8762c 100644 (file)
@@ -576,6 +576,9 @@ function addMissingReferralLevels ($userid) {
        } // END - if
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',count()=' . count($GLOBALS['referral_refid'][$userid]));
 
+       // Sort the array reversed
+       krsort($GLOBALS['referral_refid']);
+
        // Now walk through the array, first levels
        foreach ($GLOBALS['referral_refid'][$userid] as $level => $levelArray) {
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',count()=' . count($levelArray));