mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Add missing return argument when removing a resource fails
This commit is contained in:
parent
d8097d4a16
commit
ee5cc63fbc
@ -352,7 +352,7 @@ class ConfigController extends Controller
|
|||||||
$configForm->remove($resource);
|
$configForm->remove($resource);
|
||||||
} catch (InvalidArgumentException $e) {
|
} catch (InvalidArgumentException $e) {
|
||||||
Notification::error($e->getMessage());
|
Notification::error($e->getMessage());
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($configForm->save()) {
|
if ($configForm->save()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user