Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / libs / user_functions.php
index 9ab8d984f3853504d2f3973a7cd65c80a6d1caed..8e5383e71254c045d7b35c9404992f47e1d02c51 100644 (file)
@@ -223,7 +223,7 @@ LIMIT 1",
 // Selects a random user id as the new referal id if they have at least X confirmed mails in this run
 function determineRandomReferalId () {
        // Default is zero refid
-       $refid = 0;
+       $refid = '0';
 
        // Is the extension version fine?
        if (getExtensionVersion('user') >= '0.3.4') {
@@ -263,7 +263,7 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p
        // Init variables
        $dmy = '';
        $add = '';
-       $errorCode = 0;
+       $errorCode = '0';
 
        // Add last_login if available
        $lastOnline = '';