Fix warning when viewing own wishlist
This commit is contained in:
parent
a0d911016f
commit
0acd2b660f
2 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue