if (getOutputMode() != 0) return;
// Initialize variables
-$jackpot = 0; $user = 0;
+$jackpot = '0'; $user = '0';
if (isExtensionActive('jackpot')) $jackpot = getJackpotPoints();
// Get total points of the doubler itself
$DOUBLER_POINTS = DOUBLER_GET_TOTAL_POINTS_LEFT();
-if ($DOUBLER_POINTS == 0) {
+if ($DOUBLER_POINTS == '0') {
// Exit here to prevent some SQL errors (SQL_QUERY_ESC doen't insert zeros! We need to fix this...)
return;
} // END - if
unsetGetRequestElement('DOUBLER_UID');
unsetPostRequestElement('DOUBLER_UID');
setSession('DOUBLER_UID', '');
-if (empty($GLOBALS['doubler_userid'])) $GLOBALS['doubler_userid'] = 0;
+if (empty($GLOBALS['doubler_userid'])) $GLOBALS['doubler_userid'] = '0';
// Check for doubles which we can pay out
$result_total = SQL_QUERY_ESC("SELECT d.id, d.userid, d.points, d.remote_ip, d.timemark
$ref = countSumTotalData($content['userid'], 'doubler', 'points', 'refid', false, " AND `completed`='N' AND `is_ref`='Y'");
// Zero refid when empty (might be helpful!)
- if (empty($ref)) $ref = 0;
+ if (empty($ref)) $ref = '0';
if (($ref > 0) && ($GLOBALS['doubler_userid'] == $content['userid']) && (!empty($ref))) {
// Referal points found so add them and set line(s) to completed='Y'
array(bigintval($content['userid'])), __FILE__, __LINE__);
} else {
// No referal points found
- $ref = 0;
+ $ref = '0';
}
// Exclude webmaster from doubling...