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