mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
Add missing return argument when removing a resource fails
This commit is contained in:
parent
bd5d6e9661
commit
a304645b14
@ -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