From a304645b1489ed721f3280ec93e396342b5d9e02 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 27 May 2015 10:48:27 +0200 Subject: [PATCH] Add missing return argument when removing a resource fails --- application/controllers/ConfigController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index 0606f8661..5df2be008 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -352,7 +352,7 @@ class ConfigController extends Controller $configForm->remove($resource); } catch (InvalidArgumentException $e) { Notification::error($e->getMessage()); - return; + return false; } if ($configForm->save()) {