diff --git a/app/Http/Controllers/Admin/AdminSettingsController.php b/app/Http/Controllers/Admin/AdminSettingsController.php index 97304f9fa..6d4156762 100644 --- a/app/Http/Controllers/Admin/AdminSettingsController.php +++ b/app/Http/Controllers/Admin/AdminSettingsController.php @@ -19,8 +19,8 @@ trait AdminSettingsController public function settingsBackups(Request $request) { - $path = storage_path('app/PixelFed'); - $files = new \DirectoryIterator($path); + $path = storage_path('app/'.config('app.name')); + $files = is_dir($path) ? new \DirectoryIterator($path) : []; return view('admin.settings.backups', compact('files')); }