From 454650b328f17fae72ae1f0d69a7199e20e32dd6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Mar 2019 00:04:14 -0700 Subject: [PATCH] Fixes #911 --- app/Http/Controllers/Admin/AdminSettingsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); }