diff --git a/views/products.pl b/views/products.pl index 09b4de5..6fa150b 100644 --- a/views/products.pl +++ b/views/products.pl @@ -36,7 +36,7 @@ cart([Name|Items]) --> products_view(_Request) :- http_session_id(SessionId), - bagof(product(X, Y), product(X, Y), Products), + (bagof(product(X, Y), product(X, Y), Products); Products = []), (bagof(Name, cart_entry(SessionId, Name), CartEntries); CartEntries = []), reply_html_page( [