diff options
Diffstat (limited to 'includes/controller/shifttypes_controller.php')
-rw-r--r-- | includes/controller/shifttypes_controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/controller/shifttypes_controller.php b/includes/controller/shifttypes_controller.php index 5380389e..88feffed 100644 --- a/includes/controller/shifttypes_controller.php +++ b/includes/controller/shifttypes_controller.php @@ -68,12 +68,12 @@ function shifttype_edit_controller() { } if (isset($_REQUEST['submit'])) { - $ok = true; + $valid = true; if (isset($_REQUEST['name']) && $_REQUEST['name'] != '') { $name = strip_request_item('name'); } else { - $ok = false; + $valid = false; error(_('Please enter a name.')); } @@ -87,7 +87,7 @@ function shifttype_edit_controller() { $description = strip_request_item_nl('description'); } - if ($ok) { + if ($valid) { if ($shifttype_id) { $result = ShiftType_update($shifttype_id, $name, $angeltype_id, $description); if ($result === false) { |