From df526fa2bfa378000ec41f3984dc0d56bbd7172f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Thu, 13 Aug 2015 10:48:39 +0200 Subject: [PATCH] fix problem with beeing informed about shift changes --- includes/pages/guest_login.php | 2 +- includes/pages/user_settings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) . "',