Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / member / what-points.php
index 14023d575e169c89c66bcd3642ac70bb66a9eae9..fc9ea3a66e0951f7a6b2c121d53f7db2fc85e489 100644 (file)
@@ -60,7 +60,7 @@ if (getExtensionVersion('bonus') >= '0.4.4') $depths += 4;
 $content['rowspan'] = ($depths*2+15);
 
 // Init some vars...
-$totalPoints = 0; $TREF = 0; $TLOCK = 0; $OUT = '';
+$totalPoints = '0'; $TREF = '0'; $TLOCK = '0'; $OUT = '';
 
 // Load ref levels
 while ($data = SQL_FETCHARRAY($result_depths)) {
@@ -68,7 +68,7 @@ while ($data = SQL_FETCHARRAY($result_depths)) {
        $content = merge_array($content, $data);
 
        // Initialize ref-count
-       $REFS = 0;
+       $REFS = '0';
 
        // Load referal points
        $result_points = SQL_QUERY_ESC("SELECT `points`, `locked_points` FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s AND `ref_depth`='%s' LIMIT 1", array(getMemberId(), bigintval($content['level'])), __FILE__, __LINE__);
@@ -90,7 +90,7 @@ while ($data = SQL_FETCHARRAY($result_depths)) {
                list($REFS) = SQL_FETCHROW($result_refs);
                $TREF += $REFS;
        } else {
-               $REFS = 0;
+               $REFS = '0';
        }
 
        // Free result
@@ -142,7 +142,7 @@ if (getExtensionVersion('user') >= '0.1.2') {
 }
 
 // If TLOCK is 0 add 3 zeros for floating
-if ($TLOCK == 0) $TLOCK = '0.00000';
+if ($TLOCK == '0') $TLOCK = '0.00000';
 
 // Remember several values in constants
 $content['used']  = translateComma(getUserData('used_points'));