Fix warning when viewing own wishlist

This commit is contained in:
grandeljay 2022-12-31 14:31:59 +01:00
parent a0d911016f
commit 0acd2b660f
2 changed files with 3 additions and 3 deletions

View file

@ -14,11 +14,11 @@ $(function() {
closable: false, closable: false,
actions : [ actions : [
{ {
text : wishthis.strings.wishlist.warning.approve, text : wishthis.strings.modal.wishlist.warning.approve,
class: 'approve primary' class: 'approve primary'
}, },
{ {
text : wishthis.strings.wishlist.warning.deny, text : wishthis.strings.modal.wishlist.warning.deny,
class: 'deny' class: 'deny'
} }
], ],

View file

@ -47,7 +47,7 @@ $page->navigation();
/** /**
* Warn the wishlist creator * 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) { ?>
<div class="ui icon warning message wishlist-own"> <div class="ui icon warning message wishlist-own">
<i class="exclamation triangle icon"></i> <i class="exclamation triangle icon"></i>
<div class="content"> <div class="content">