$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)) {
$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__);
list($REFS) = SQL_FETCHROW($result_refs);
$TREF += $REFS;
} else {
- $REFS = 0;
+ $REFS = '0';
}
// Free result
}
// 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'));