Bug fixed in referal system:
[mailer.git] / inc / libs / refback_functions.php
index c93d950d660d7d16f2cec57a1356bb4aca39bdcd..5d04dde4814bacde57e6cc1a47350eb9f6e3d136 100644 (file)
@@ -54,7 +54,7 @@ function ADD_REFBACK_POINTS ($uid, $ref, $points, $ref_points) {
        // "Walk" through all level
        while (list($level, $perc) = SQL_FETCHROW($result_refs)) {
                // Reset ref depths
-               $DEPTH = -1;
+               unset($DEPTH);
 
                // "Walk" through all refids
                //* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):uid={$uid},ref={$ref},level={$level},points={$points}<br />\n";