From f4345352184f30d2d5086437cf9c437c036a2fb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Jun 2012 00:07:00 +0000 Subject: [PATCH] Better here --- inc/referral-functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/referral-functions.php b/inc/referral-functions.php index 087914d9ac..39302c95b4 100644 --- a/inc/referral-functions.php +++ b/inc/referral-functions.php @@ -585,12 +585,12 @@ function addMissingReferralLevels ($userid) { // Next are the users foreach ($levelArray as $refid) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . $refid); - // Add also this user's (maybe) missing levels - addMissingReferralLevels($refid); - // Does the refid have an array? if (isset($GLOBALS['referral_refid'][$refid])) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . convertNullToZero($refid) . ',count()=' . count($GLOBALS['referral_refid'][$refid])); + // Add also this user's (maybe) missing levels + addMissingReferralLevels($refid); + // Okay, then walk through here, too foreach ($GLOBALS['referral_refid'][$refid] as $refLevel => $refArray) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . convertNullToZero($refid) . ',refLevel=' . $refLevel . ',count()=' . count($refArray)); -- 2.30.2