mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update headermenu.tpl and Category model
This commit is contained in:
@@ -439,13 +439,13 @@ class Category extends Model
|
||||
if ($arrsql !== null) {
|
||||
$arr = $arrsql;
|
||||
} else {
|
||||
$arr = $sql->get();
|
||||
$arr = $sql->get()->toArray();
|
||||
$expiresAt = Carbon::now()->addSeconds(NN_CACHE_EXPIRY_LONG);
|
||||
Cache::put(md5(implode(',', $excludedCats).implode(',', $roleExcludedCats)), $arr, $expiresAt);
|
||||
}
|
||||
|
||||
foreach ($arr as $key => $val) {
|
||||
if ($val['id'] === '0') {
|
||||
if ($val['id'] === self::OTHER_ROOT) {
|
||||
$item = $arr[$key];
|
||||
unset($arr[$key]);
|
||||
$arr[] = $item;
|
||||
|
||||
Reference in New Issue
Block a user