diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 9e8fdb5b1..7029dc587 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -5,7 +5,6 @@ namespace App\Http\Controllers; use App\Models\User; use Blacklight\NZBGet; use Blacklight\SABnzbd; -use App\Models\Category; use App\Models\Settings; use App\Models\UserRequest; use Illuminate\Support\Arr; diff --git a/app/Models/Category.php b/app/Models/Category.php index 681796cc4..cd4096976 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -521,6 +521,7 @@ class Category extends Model unset($ret[$key]); } } + return $ret; } @@ -548,7 +549,7 @@ class Category extends Model $temp_array[-1] = '--Please Select--'; } foreach ($categories as $category) { - $temp_array[$category->id] = $category->parent->title. ' > '.$category->title; + $temp_array[$category->id] = $category->parent->title.' > '.$category->title; } return $temp_array; diff --git a/app/Models/RootCategory.php b/app/Models/RootCategory.php index 70ed0a8a7..06dd20f72 100644 --- a/app/Models/RootCategory.php +++ b/app/Models/RootCategory.php @@ -2,8 +2,8 @@ namespace App\Models; -use Illuminate\Database\Eloquent\Model; use Watson\Rememberable\Rememberable; +use Illuminate\Database\Eloquent\Model; class RootCategory extends Model {