]> git.mxchange.org Git - mailer.git/commitdiff
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 452d8d86bf31c660cb758cc6f657e8aa81baff2d..37c25d174f818987b3e1fd42f07e8142945fe27d 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