]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-points.php
Same thing fixed, but without the opps ...
[mailer.git] / inc / modules / member / what-points.php
index c0e9f07c0906c3e44cbecbdd9df707cb92982903..563eab9f39e225bf86089a8da62c64400a19c0d2 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // Add description as navigation point
 addYouAreHereLink('member', __FILE__);
 
-// Query for referal levels and percents
+// Query for referral levels and percents
 $result_depths = SQL_QUERY('SELECT `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
 
 // Get total depths
@@ -62,7 +62,7 @@ $content['rowspan'] = ($numDepths * 2 + 15);
 
 // Initialize array elements
 $content['part_points']         = '0.00000';
-$content['part_referals']       = '0';
+$content['part_referrals']      = '0';
 $content['part_locked']         = '0.00000';
 $content['part_order']          = '0.00000';
 $content['part_locked_order']   = '0.00000';
@@ -82,13 +82,13 @@ while ($data = SQL_FETCHARRAY($result_depths)) {
        // Merge it together
        $content = merge_array($content, $data);
 
-       // Default for referal level > 0
+       // Default for referral level > 0
        $depth = 'p.`ref_depth`=%s';
        if (is_null($content['level'])) {
                $depth = 'p.`ref_depth` IS NULL';
        } // END - if
 
-       // Load referal points
+       // Load referral points
        $result_points = SQL_QUERY_ESC("SELECT
        p.`points`,
        p.`order_points`,
@@ -108,7 +108,7 @@ WHERE
 LIMIT 1",
                array(
                        getMemberId(),
-                       makeZeroToNull($content['level'])
+                       convertZeroToNull($content['level'])
                ), __FILE__, __LINE__);
 
        // Do we have an entry?
@@ -121,7 +121,7 @@ LIMIT 1",
                $content['part_order']        += $content['order_points'];
                $content['part_locked']       += $content['locked_points'];
                $content['part_locked_order'] += $content['locked_order_points'];
-               $content['part_referals']     += $content['counter'];
+               $content['part_referrals']    += $content['counter'];
        } // END - if
 
        // Free result