]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/refback_functions.php
Large code cleanups:
[mailer.git] / inc / libs / refback_functions.php
index f8d2ba7155dcaa961b58e3bc164eedc6f7717bf5..dbab02152d36bf3094e2cc53e68a9e6457cfa727 100644 (file)
@@ -57,7 +57,7 @@ function addRefbackPoints ($userid, $ref, $points, $ref_points) {
        while ($content = SQL_FETCHARRAY($result_refs)) {
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'level=' . $content['level'] . ',percents=' . $content['percents'] . ' - LOOP START!');
                // Reset ref depths
-               initReferalSystem();
+               initReferralSystem();
 
                // Init array
                $refids = getArrayFromRefbackLevel($userid, $content['level']);
@@ -103,7 +103,7 @@ LIMIT 1',
 
                                // Add points again, but only directly
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'refbackPoints=' . $refbackPoints . ',userid=' . $userid . ',ref=' . $ref . ',refid=' . makeNullToZero($refid) . ' - REFBACK-UPDATE! (' . SQL_AFFECTEDROWS() . ')');
-                               addPointsThroughReferalSystem(sprintf("refback:%s", $refid), $userid, $refbackPoints);
+                               addPointsThroughReferralSystem(sprintf("refback:%s", $refid), $userid, $refbackPoints);
 
                                // Reduce points if refid is found
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',refid=' . $refid . ',ref=' . $ref . ' - REDUCING?');
@@ -131,7 +131,7 @@ LIMIT 1',
  * "Getter" for refback percents
  *
  * @param      $userid         "Current" user's userid
- * @param      $refid          $userid has this userid as referal
+ * @param      $refid          $userid has this userid as referral
  * @return     $percents       Refback percents $userid has given to $refid
  */
 function getRefbackPercents ($userid, $refid) {