Set the default folder id to 0

parent bcffe204
......@@ -157,7 +157,7 @@ class EloquentFileRepository extends EloquentBaseRepository implements FileRepos
$media = $this->allWithBuilder();
$media->orderBy('is_folder', 'desc');
$media->where('folder_id', $request->get('folder_id'));
$media->where('folder_id', $request->get('folder_id', 0));
if ($request->get('search') !== null) {
$term = $request->get('search');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment