mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update getCategorySearch function
This commit is contained in:
@@ -315,11 +315,11 @@ class Category extends Model
|
||||
}
|
||||
}
|
||||
foreach ($cat as $category) {
|
||||
if ($category !== -1 && self::isParent($category)) {
|
||||
if (is_numeric($category) && $category !== -1 && self::isParent($category)) {
|
||||
foreach (RootCategory::find($category)->categories as $child) {
|
||||
$categories[] = $child['id'];
|
||||
}
|
||||
} elseif ($category > 0) {
|
||||
} elseif (is_numeric($category) && $category > 0) {
|
||||
$categories[] = $category;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user