Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / libs / doubler_functions.php
index 6b8d7f8b92c563f4474057c561fd605fc2f3110e..28ce65d9b8cfaa87725e12708a55869e927ce44a 100644 (file)
@@ -43,9 +43,9 @@ if (!defined('__SECURITY')) {
 
 // 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));
@@ -122,7 +122,7 @@ LIMIT ".$limit, __FUNCTION__, __LINE__);
 //
 function DOUBLER_GET_TOTAL_POINTS_LEFT() {
        // Initialize variables
-       $points = 0;
+       $points = '0';
 
        if (getConfig('doubler_own') == 'Y') {
                // Take points from doubler's own account