From b2f43e7d6e03a237d47a94d1d4647b44885f1f41 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Tue, 12 Apr 2022 10:43:00 +0200 Subject: [PATCH] Fix getSavedWishlists for logged out users --- src/classes/user.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/classes/user.php b/src/classes/user.php index 1859f0bf..1720765d 100644 --- a/src/classes/user.php +++ b/src/classes/user.php @@ -89,6 +89,10 @@ class User $wishlists = array(); + if (!$this->isLoggedIn()) { + return $wishlists; + } + $result = $database ->query('SELECT `ws`.`wishlist`, `w`.`user`,