]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-reflist.php
Further rewrites due to deprecated functions in 5.3.1
[mailer.git] / inc / modules / member / what-reflist.php
index b49e0bd75161b353b12da40c23480e374d981425..5875286770c6e979354bfcd249d95bc897b7e7db 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 09/09/2008 *
- * ================                             Last change: 09/09/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 09/09/2008 *
+ * ===================                          Last change: 09/09/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-reflist.php                                 *
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -52,7 +53,7 @@ $result = SQL_QUERY_ESC("SELECT r.level, r.percents
 FROM `{?_MYSQL_PREFIX?}_refdepths` AS r
 WHERE r.level > 0
 ORDER BY r.level ASC",
-array(getUserId()), __FILE__, __LINE__);
+array(getMemberId()), __FILE__, __LINE__);
 
 // Are there some entries? (Shall be!)
 if (SQL_NUMROWS($result) > 0) {
@@ -61,11 +62,11 @@ if (SQL_NUMROWS($result) > 0) {
        while ($content = SQL_FETCHARRAY($result)) {
                // Init variables
                $rows = '';
-               $counter = 0;
+               $counter = '0';
                $SW = 2;
 
                // Check for users ref in this level
-               foreach (getUserReferalPoints(getUserId(), $content['level']) as $refRow) {
+               foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) {
                        // Add/"translate" more content
                        $refRow['sw']          = $SW;
                        $refRow['points']      = translateComma($refRow['points']);