if (isGetRequestElementSet('hash')) {
// Initialize the user id
- $userid = 0;
+ $userid = '0';
// Search for an unconfirmed or confirmed account
$result = SQL_QUERY_ESC("SELECT `userid`, `email`, `refid`,`gender` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `user_hash`='%s' AND (`status`='UNCONFIRMED' OR `status`='CONFIRMED') LIMIT 1",
updateReferalCounter($rid);
// Shall I 'pay' the referal points imidiately?
- if (getConfig('ref_payout') == 0) {
+ if (getConfig('ref_payout') == '0') {
// Yes, 'pay' it now
$locked = false;
} else {