summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-08-13 10:48:39 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-08-13 10:48:39 +0200
commitdf526fa2bfa378000ec41f3984dc0d56bbd7172f (patch)
tree687f31a6c689d6abd072c1970bb21ba6a6684077
parent5742306095b742bdc2d574968d6ee0c4c7c876ec (diff)
fix problem with beeing informed about shift changes
-rw-r--r--includes/pages/guest_login.php2
-rw-r--r--includes/pages/user_settings.php2
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) . "',