diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-01-16 12:47:49 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-01-16 12:47:49 +0000 |
| commit | f4c96e60a1c9299086f602959cae18b8b4caea53 (patch) | |
| tree | baf7ddb3f3d4bbfbca50bf5c99c1a945493eebe8 | |
| parent | c8ab7f06777c59c1e8d30f151869024f39cead92 (diff) | |
| download | webtrees-f4c96e60a1c9299086f602959cae18b8b4caea53.tar.gz webtrees-f4c96e60a1c9299086f602959cae18b8b4caea53.tar.bz2 webtrees-f4c96e60a1c9299086f602959cae18b8b4caea53.zip | |
ErrorHandling
| -rw-r--r-- | app/Http/Controllers/AdminModuleController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/Controllers/AdminModuleController.php b/app/Http/Controllers/AdminModuleController.php index 36fa6225cb..d2f5ac2a19 100644 --- a/app/Http/Controllers/AdminModuleController.php +++ b/app/Http/Controllers/AdminModuleController.php @@ -39,7 +39,7 @@ class AdminModuleController extends AdminController */ public function action(Request $request, User $user): Response { - $module_name = $request->get('module'); + $module_name = $request->get('module', ''); // Check that the module is enabled. // The module itself will need to check any tree-level access, @@ -48,7 +48,7 @@ class AdminModuleController extends AdminController // We'll call a function such as Module::getFooBarAction() $verb = strtolower($request->getMethod()); - $action = $request->get('action'); + $action = $request->get('action', ''); $method = $verb . $action . 'Action'; // Actions with "Admin" in the name are for administrators only. |
