diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 12:08:12 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 12:08:12 +0200 |
commit | f05f1a3cd4cc3a9fa6021d2c5feedd7e734973ba (patch) | |
tree | d1c2404dc56f6d1d0a3ed402d0a3880e77b70a17 /includes/controller/angeltypes_controller.php | |
parent | 81e5a6482c340d3013c9fce54c10ef1a72a5a930 (diff) |
rename to
Diffstat (limited to 'includes/controller/angeltypes_controller.php')
-rw-r--r-- | includes/controller/angeltypes_controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index eeb42d75..92d1d8ee 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -133,13 +133,13 @@ function angeltype_edit_controller() { $coordinator_mode = ! in_array('admin_angel_types', $privileges); if (isset($_REQUEST['submit'])) { - $ok = true; + $valid = true; if (! $coordinator_mode) { if (isset($_REQUEST['name'])) { list($valid, $name) = AngelType_validate_name($_REQUEST['name'], $angeltype); if (! $valid) { - $ok = false; + $valid = false; error(_("Please check the name. Maybe it already exists.")); } } @@ -152,7 +152,7 @@ function angeltype_edit_controller() { $description = strip_request_item_nl('description'); } - if ($ok) { + if ($valid) { if (isset($angeltype)) { $result = AngelType_update($angeltype['id'], $name, $restricted, $description, $requires_driver_license); if ($result === false) { |