mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
Fix bad checks in all regex related admin controllers
This commit is contained in:
@@ -70,12 +70,12 @@ class CategoryRegexesController extends BasePageController
|
||||
|
||||
switch ($action) {
|
||||
case 'submit':
|
||||
if ($request->input('group_regex') === '') {
|
||||
if (empty($request->input('group_regex'))) {
|
||||
$this->smarty->assign('error', 'Group regex must not be empty!');
|
||||
break;
|
||||
}
|
||||
|
||||
if ($request->input('regex') === '') {
|
||||
if (empty($request->input('regex'))) {
|
||||
$this->smarty->assign('error', 'Regex cannot be empty');
|
||||
break;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class CategoryRegexesController extends BasePageController
|
||||
break;
|
||||
}
|
||||
|
||||
if ($request->input('id') === '') {
|
||||
if (empty($request->input('id'))) {
|
||||
$regexes->addRegex($request->all());
|
||||
} else {
|
||||
$regexes->updateRegex($request->all());
|
||||
|
||||
Reference in New Issue
Block a user