// 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') {
// Init variables
$dmy = '';
$add = '';
- $errorCode = 0;
+ $errorCode = '0';
// Add last_login if available
$lastOnline = '';