From 8283516911807c8e86e0e8893eae5ad0868f23ba Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 2 Aug 2023 18:08:16 -0700 Subject: [PATCH] albums: rearrange stuff in backend Signed-off-by: Varun Patil --- lib/ClustersBackend/AlbumsBackend.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ClustersBackend/AlbumsBackend.php b/lib/ClustersBackend/AlbumsBackend.php index a0cc38e1..a1812132 100644 --- a/lib/ClustersBackend/AlbumsBackend.php +++ b/lib/ClustersBackend/AlbumsBackend.php @@ -91,14 +91,14 @@ class AlbumsBackend extends Backend { /** @var \OCP\IRequest $request */ $request = \OC::$server->get(\OCP\IRequest::class); - - // Run actual query - $list = []; $fileid = (int) $request->getParam('fileid', -1); - // personal albums + // Run actual queries + $list = []; + + // Personal albums $list = array_merge($list, $this->albumsQuery->getList(Util::getUID(), false, $fileid)); - // shared albums + // Shared albums $list = array_merge($list, $this->albumsQuery->getList(Util::getUID(), true, $fileid)); // Remove elements with duplicate album_id