function ShiftType_update($shifttype_id, $name, $angeltype_id, $description) {
  return sql_query("UPDATE `ShiftTypes` SET
      `name`='" . sql_escape($name) . "',
      `angeltype_id`=" . sql_null($angeltype_id) . ",
      `description`='" . sql_escape($description) . "'