summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-07-12 14:45:58 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-07-12 14:45:58 +0200
commit8c518d4c3496ce9c72e4eed400923bd978b4e6a5 (patch)
tree6d28b53c22f9716d79398f5616a634ed2db3a08b /includes/model
parent66c7e67a038b24ef9788d2550da15b2209c08123 (diff)
add arrival date feature
Diffstat (limited to 'includes/model')
-rw-r--r--includes/model/User_model.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php
index 9df72748..ce760552 100644
--- a/includes/model/User_model.php
+++ b/includes/model/User_model.php
@@ -29,8 +29,10 @@ function User_update($user) {
`color`='" . sql_escape($user['color']) . "',
`Sprache`='" . sql_escape($user['Sprache']) . "',
`Hometown`='" . sql_escape($user['Hometown']) . "',
- `got_voucher`=" . sql_bool($user['got_voucher']) . "
- WHERE `UID`='" . sql_escape($user['UID']). "'");
+ `got_voucher`=" . sql_bool($user['got_voucher']) . ",
+ `arrival_date`='" . sql_escape($user['arrival_date']) . "'
+ `planned_arrival_date`='" . sql_escape($user['planned_arrival_date']) . "'
+ WHERE `UID`='" . sql_escape($user['UID']) . "'");
}
/**