}
// Get total points left in doubler pot
+// @TODO This could be rewritten to a filter
function getDoublerTotalPointsLeft() {
// Initialize variables
$points = '0';
} // END - if
if ((getConfig('doubler_jackpot') == 'Y') && (isExtensionActive('jackpot'))) {
- // Load jackpot
- $jackpot = getJackpotPoints();
-
- if (!empty($jackpot)) $points += $jackpot;
+ // Get+add jackpot points
+ $points += getJackpotPoints();
} // END - if
if (isValidId(getDoublerUserid())) {
// Get user's points
- $user = getTotalPoints(getDoublerUserid());
- $points += $user;
+ $points += getTotalPoints(getDoublerUserid());
} // END - if
// Return value