// Generates a HTML table based on given data
// @TODO Lame description
-function generateDoublerTable ($userid = 0, $done = 'N', $ref = 'N', $sort = 'ASC') {
- if (empty($cnt)) $cnt = 0;
- $add = ''; $DT_MODE = 0;
+function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = 'ASC') {
+ if (empty($cnt)) $cnt = '0';
+ $add = ''; $DT_MODE = '0';
if ($userid > 0) {
// Load entries only from a single user
$add = sprintf(" AND `userid`=%s", bigintval($userid));
//
function DOUBLER_GET_TOTAL_POINTS_LEFT() {
// Initialize variables
- $points = 0;
+ $points = '0';
if (getConfig('doubler_own') == 'Y') {
// Take points from doubler's own account