X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Frallye_functions.php;h=452d8d86bf31c660cb758cc6f657e8aa81baff2d;hb=9e87905a8b58688f0bdef27413cac9c25f4c085c;hp=cf06f007354efc5738e03a64088a0907d39cde21;hpb=f9355ef19837da4e8cb88e0d6c0febf082a1824d;p=mailer.git
diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php
index cf06f00735..452d8d86bf 100644
--- a/inc/libs/rallye_functions.php
+++ b/inc/libs/rallye_functions.php
@@ -745,24 +745,15 @@ function RALLYE_GET_REFCOUNT($uid, $old=0) {
foreach ($cacheArray['ref_system']['userid'] as $id => $u_id) {
// Do we have a ref for this user?
//* DEBUG: */ echo "id={$id},u_id={$u_id},uid={$uid},old={$old},level={$cacheArray['ref_system']['level'][$id]}
\n";
- if (($u_id == $uid) && ($cacheArray['ref_system']['level'][$id] == 1)) {
+ if (($u_id == $uid) && (($cacheArray['ref_system']['level'][$id] == 1 && EXT_IS_ACTIVE("refback")) || ($cacheArray['ref_system']['level'][$id] == 0 && GET_EXT_VERSION("refback") == ""))) {
//* DEBUG: */ echo "uid matches!
\n";
- foreach ($cacheArray['ref_depths']['level'] as $level) {
- if (($level == $cacheArray['ref_system']['level'][$id]) && ($level == 1)) {
- // Level does exist so abort here
- $cnt = $cacheArray['ref_system']['counter'][$id];
- //* DEBUG: */ echo "*".$uid."/".$cnt."*
";
- break;
- } elseif ($level > 1) {
- // Not interesting here...
- break;
- }
- }
+ // Entry found!
+ $cnt = $cacheArray['ref_system']['counter'][$id];
+ //* DEBUG: */ echo "*".$uid."/".$cnt."*
";
+ break;
+ } // END - if
+ } // END - foreach
- // Abort also here!
- if ($cnt > 0) break;
- }
- }
//* DEBUG: */ echo "
"; //* DEBUG: */ print_r($cacheArray['ref_system']); //* DEBUG: */ echo ""; @@ -775,7 +766,7 @@ function RALLYE_GET_REFCOUNT($uid, $old=0) { // Remove old refs //* DEBUG: */ echo "+".$cnt."/".$old."+