Fix added for extension update with always active extensions, thanks to profi-concept
[mailer.git] / inc / libs / refback_functions.php
index 4f7e655790933b1690e35428119ac498937fa3dc..c93d950d660d7d16f2cec57a1356bb4aca39bdcd 100644 (file)
@@ -56,7 +56,7 @@ function ADD_REFBACK_POINTS ($uid, $ref, $points, $ref_points) {
                // Reset ref depths
                $DEPTH = -1;
 
-               // "Walk through all refids
+               // "Walk" through all refids
                //* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):uid={$uid},ref={$ref},level={$level},points={$points}<br />\n";
                foreach (GET_REFBACK_USERID_ARRAY($uid, $level) as $refid) {
                        // Skip level zero or if both are the same
@@ -69,7 +69,7 @@ function ADD_REFBACK_POINTS ($uid, $ref, $points, $ref_points) {
                        // Some percents given?
                        if ($percents > 0) {
                                //* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):points={$points},perc={$perc},percents={$percents},level={$level}<br />\n";
-                               // Get points for refback
+                               // Calculate points for refback
                                $refback = $points * ($perc / 100) * ($percents / 100);
 
                                // Update refback table ("refid" and "uid" must be exchanged!)