From 53a306f14b22a897cfbda1bd13b94564116417db Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 15 Nov 2016 16:36:03 +0100 Subject: [PATCH] make departure date nullable --- includes/model/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 6d38a224..c3e91911 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -42,7 +42,7 @@ function User_update($user) { `got_voucher`='" . sql_escape($user['got_voucher']) . "', `arrival_date`='" . sql_escape($user['arrival_date']) . "', `planned_arrival_date`='" . sql_escape($user['planned_arrival_date']) . "', - `planned_departure_date`='" . sql_escape($user['planned_departure_date']) . "' + `planned_departure_date`=" . sql_null($user['planned_departure_date']) . " WHERE `UID`='" . sql_escape($user['UID']) . "'"); }