Even more fixes for rallye
authorRoland Häder <roland@mxchange.org>
Sat, 4 Oct 2008 13:06:14 +0000 (13:06 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 4 Oct 2008 13:06:14 +0000 (13:06 +0000)
inc/libs/rallye_functions.php

index 452d8d8..37c25d1 100644 (file)
@@ -745,11 +745,10 @@ 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]}<br />\n";
-                       if (($u_id == $uid) && (($cacheArray['ref_system']['level'][$id] == 1 && EXT_IS_ACTIVE("refback")) || ($cacheArray['ref_system']['level'][$id] == 0 && GET_EXT_VERSION("refback") == ""))) {
+                       if (($u_id == $uid) && (($cacheArray['ref_system']['level'][$id] == 1 && GET_EXT_VERSION("refback") != "") || ($cacheArray['ref_system']['level'][$id] == 0 && GET_EXT_VERSION("refback") == ""))) {
                                //* DEBUG: */ echo "uid matches!<br />\n";
                                // Entry found!
                                $cnt = $cacheArray['ref_system']['counter'][$id];
-                               //* DEBUG: */ echo "*".$uid."/".$cnt."*<br />";
                                break;
                        } // END - if
                } // END - foreach