Only warn user if wishlist contains products

This commit is contained in:
Jay Trees 2022-02-22 11:52:33 +01:00
parent 6a13151c36
commit 581d8d8f8e

View file

@ -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">