From 0cb28c05b1317befdd3237e0fcbf66202aaa923c Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 10 Jan 2015 11:12:02 +0100 Subject: fix creation of shift types --- includes/model/ShiftTypes_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/model/ShiftTypes_model.php b/includes/model/ShiftTypes_model.php index 907ad076..7f057da8 100644 --- a/includes/model/ShiftTypes_model.php +++ b/includes/model/ShiftTypes_model.php @@ -35,7 +35,7 @@ function ShiftType_update($shifttype_id, $name, $angeltype_id, $description) { function ShiftType_create($name, $angeltype_id, $description) { $result = sql_query("INSERT INTO `ShiftTypes` SET `name`='" . sql_escape($name) . "', - `angeltype_id`='" . sql_null($angeltype_id) . "', + `angeltype_id`=" . sql_null($angeltype_id) . ", `description`='" . sql_escape($description) . "'"); if ($result === false) return false; -- cgit v1.2.3-54-g00ecf