From d2dd3d8109e418ba9b34fb1c3c4d0c402ea56976 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 4 Jan 2019 12:20:05 +0100 Subject: [PATCH] Fix adding new collection regexes --- Changelog | 1 + app/Http/Controllers/Admin/CollectionRegexesController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index e66bf176e..fc5955d5e 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-04 DariusIII + * Fix: Fix adding new collection regexes * Fix: Fix AEBN class error when fetching data 2019-01-03 DariusIII * Chg: Adjust menu text alignment in left sidebar diff --git a/app/Http/Controllers/Admin/CollectionRegexesController.php b/app/Http/Controllers/Admin/CollectionRegexesController.php index caf30dd9b..59a5ff5ce 100644 --- a/app/Http/Controllers/Admin/CollectionRegexesController.php +++ b/app/Http/Controllers/Admin/CollectionRegexesController.php @@ -77,7 +77,7 @@ class CollectionRegexesController extends BasePageController break; } - if ($request->input('id') === '') { + if (empty($request->input('id'))) { $regexes->addRegex($request->all()); } else { $regexes->updateRegex($request->all());