mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
Fix type issue
This commit is contained in:
@@ -82,7 +82,12 @@ class AdminCollectionRegexesController extends BasePageController
|
||||
default:
|
||||
if ($request->has('id')) {
|
||||
$meta_title = $title = 'Collections Regex Edit';
|
||||
$regex = $regexes->getRegexByID($request->input('id'));
|
||||
$id = filter_var($request->input('id'), FILTER_VALIDATE_INT, ['options' => ['min_range' => 1]]);
|
||||
if ($id === false) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$regex = $regexes->getRegexByID($id);
|
||||
} else {
|
||||
$meta_title = $title = 'Collections Regex Add';
|
||||
$regex += ['status' => 1];
|
||||
|
||||
Reference in New Issue
Block a user