From b12548656e64cc652c244b79ad2e8ba1e3b84920 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Tue, 5 Sep 2023 15:51:10 +0200 Subject: [PATCH] fix: attempting to show deleted wishlists --- src/pages/wishlists-saved.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/wishlists-saved.php b/src/pages/wishlists-saved.php index 0c172195..309609bf 100644 --- a/src/pages/wishlists-saved.php +++ b/src/pages/wishlists-saved.php @@ -19,6 +19,10 @@ $wishlists = $user->getSavedWishlists(); $wishlists_by_user = array(); foreach ($wishlists as $wishlist_saved) { + if (!isset($wishlist_saved['user'])) { + continue; + } + $wishlists_by_user[$wishlist_saved['user']][] = $wishlist_saved; } ?>