diff options
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/angeltypes_controller.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index 92d1d8ee..5607ea7c 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -137,8 +137,9 @@ function angeltype_edit_controller() { if (! $coordinator_mode) { if (isset($_REQUEST['name'])) { - list($valid, $name) = AngelType_validate_name($_REQUEST['name'], $angeltype); - if (! $valid) { + $result = AngelType_validate_name($_REQUEST['name'], $angeltype); + $name = $result->getValue(); + if (! $result->isValid()) { $valid = false; error(_("Please check the name. Maybe it already exists.")); } |