diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 64a97d70..8556b455 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -139,7 +139,7 @@ function guest_register() { `DECT`='" . sql_escape($dect) . "', `Handy`='" . sql_escape($mobile) . "', `email`='" . sql_escape($mail) . "', - `email_shiftinfo`='" . sql_escape($email_shiftinfo ? 'TRUE' : 'FALSE') . "', + `email_shiftinfo`=" . sql_bool($email_shiftinfo) . ", `jabber`='" . sql_escape($jabber) . "', `Size`='" . sql_escape($tshirt_size) . "', `Passwort`='" . sql_escape($password_hash) . "', diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index f3c48c40..d210ed56 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -90,7 +90,7 @@ function user_settings() { `DECT`='" . sql_escape($dect) . "', `Handy`='" . sql_escape($mobile) . "', `email`='" . sql_escape($mail) . "', - `email_shiftinfo`='" . sql_escape($email_shiftinfo ? 'TRUE' : 'FALSE') . "', + `email_shiftinfo`=" . sql_bool($email_shiftinfo) . ", `jabber`='" . sql_escape($jabber) . "', `Size`='" . sql_escape($tshirt_size) . "', `Hometown`='" . sql_escape($hometown) . "',