summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-01-10 11:12:02 +0100
committerPhilip Häusler <msquare@notrademark.de>2015-01-10 11:12:02 +0100
commit0cb28c05b1317befdd3237e0fcbf66202aaa923c (patch)
treebf98d148d4bc242e572cf37a961ba9b55beeeab8
parent9af229094d1d6ae115f1b359e76a4e26952a1ffc (diff)
fix creation of shift types
-rw-r--r--includes/model/ShiftTypes_model.php2
1 files changed, 1 insertions, 1 deletions
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;