1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00
This commit is contained in:
Daniel Supernault 2019-03-01 00:04:14 -07:00
parent be6dab2d4f
commit 454650b328
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -19,8 +19,8 @@ trait AdminSettingsController
public function settingsBackups(Request $request) public function settingsBackups(Request $request)
{ {
$path = storage_path('app/PixelFed'); $path = storage_path('app/'.config('app.name'));
$files = new \DirectoryIterator($path); $files = is_dir($path) ? new \DirectoryIterator($path) : [];
return view('admin.settings.backups', compact('files')); return view('admin.settings.backups', compact('files'));
} }