diff --git a/guest_view_item.php b/guest_view_item.php index b90f2395..9d01c364 100644 --- a/guest_view_item.php +++ b/guest_view_item.php @@ -38,8 +38,8 @@ if (mysqli_num_rows($sql) !== 1 || !$row) { exit(); } -// Check item share is active & hasn't been viewed too many times -if ($row['item_active'] !== "1" || $row['item_views'] >= $row['item_view_limit']) { +// Check item share is active & hasn't been viewed too many times but allow 0 views as that is consider infinite views +if ($row['item_active'] !== "1" || ($row['item_view_limit'] > 0 && $row['item_views'] >= $row['item_view_limit'])) { echo "
Item cannot be viewed at this time. Check with the person that sent you this link to ensure it is correct and has not expired.
"; include("guest_footer.php"); exit(); diff --git a/share_modal.php b/share_modal.php index db73f50f..b3652d59 100644 --- a/share_modal.php +++ b/share_modal.php @@ -17,7 +17,7 @@