Only warn user if wishlist contains products
This commit is contained in:
parent
6a13151c36
commit
581d8d8f8e
1 changed files with 17 additions and 17 deletions
|
@ -32,7 +32,7 @@ $page->navigation();
|
|||
/**
|
||||
* Warn the wishlist creator
|
||||
*/
|
||||
if (isset($user->id) && $user->id === intval($wishlist->data['user'])) { ?>
|
||||
if (isset($user->id) && $user->id === intval($wishlist->data['user']) && !empty($wishlist->products)) { ?>
|
||||
<div class="ui icon warning message wishlist-own">
|
||||
<i class="exclamation triangle icon"></i>
|
||||
<div class="content">
|
||||
|
|
Loading…
Reference in a new issue