fix creation of shift types

This commit is contained in:
Philip Häusler 2015-01-10 11:12:02 +01:00
parent 9af229094d
commit 0cb28c05b1
1 changed files with 1 additions and 1 deletions

View File

@ -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;