// Initialize variables
$isOkay = true;
$shortPass = false;
-$cats = 0;
+$cats = '0';
$ipTimedOut = false;
// Default refid is zero
$userid = SQL_INSERTID();
// Did this work?
- if ($userid == 0) {
+ if ($userid == '0') {
// Something bad happened!
loadTemplate('admin_settings_saved', false, getMessage('USER_NOT_REGISTERED'));
return;
// Write his welcome-points
$result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s AND `ref_depth`=0 LIMIT 1",
array(bigintval($userid)), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 0) {
+ if (SQL_NUMROWS($result) == '0') {
// Add only when the line was not found (maybe some more secure?)
$locked = 'points';
$gender = translateGender(postRequestElement('gender'));
// ... rewrite a zero referal id to the main title
- if (postRequestElement('refid') == 0) setRequestPostElement('refid', getConfig('MAIN_TITLE'));
+ if (postRequestElement('refid') == '0') setRequestPostElement('refid', getConfig('MAIN_TITLE'));
// Is ZIP code set?
if (isPostRequestElementSet('zip')) {