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,
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'
}
],

View file

@ -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) { ?>
<div class="ui icon warning message wishlist-own">
<i class="exclamation triangle icon"></i>
<div class="content">