From 784770db6f6379b034a9bd9f181d152c9c86981c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 24 Jul 2021 17:49:10 +0000 Subject: [PATCH 1/1] Some more stuff removed --- mod/photos.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index f999b29d8e..e4b0dcf4ed 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -75,8 +75,6 @@ function photos_init(App $a) { $ret = ['success' => false]; if ($albums) { - $a->data['albums'] = $albums; - if ($albums_visible) { $ret['success'] = true; } @@ -919,8 +917,9 @@ function photos_content(App $a) $albumselect = ''; $albumselect .= ''; - if (!empty($a->data['albums'])) { - foreach ($a->data['albums'] as $album) { + $albums = Photo::getAlbums($owner_uid); + if (!empty($albums)) { + foreach ($albums as $album) { if (($album['album'] === '') || ($album['album'] === Photo::CONTACT_PHOTOS) || ($album['album'] === DI::l10n()->t(Photo::CONTACT_PHOTOS))) { continue; } -- 2.39.2