From 0acd2b660f4b9ca74f8d9d5f63c96670290192e1 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sat, 31 Dec 2022 14:31:59 +0100 Subject: [PATCH] Fix warning when viewing own wishlist --- src/assets/js/wishlist.js | 4 ++-- src/pages/wishlist.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/js/wishlist.js b/src/assets/js/wishlist.js index 75b4bf03..ce24c0bf 100644 --- a/src/assets/js/wishlist.js +++ b/src/assets/js/wishlist.js @@ -14,11 +14,11 @@ $(function() { closable: false, actions : [ { - text : wishthis.strings.wishlist.warning.approve, + text : wishthis.strings.modal.wishlist.warning.approve, class: 'approve primary' }, { - text : wishthis.strings.wishlist.warning.deny, + text : wishthis.strings.modal.wishlist.warning.deny, class: 'deny' } ], diff --git a/src/pages/wishlist.php b/src/pages/wishlist.php index 407620e4..21688758 100644 --- a/src/pages/wishlist.php +++ b/src/pages/wishlist.php @@ -47,7 +47,7 @@ $page->navigation(); /** * Warn the wishlist creator */ - if ($_SESSION['user']->isLoggedIn() && $_SESSION['user']->id === $wishlist->user && !empty($wishlist->wishes)) { ?> + if ($_SESSION['user']->isLoggedIn() && $_SESSION['user']->id === $wishlist->user) { ?>