From 9df2385eb59a43152349ed774fb570065022f8e5 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 25 May 2013 20:23:19 +0200 Subject: allow price=0 (allow donations) --- src/web/web.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/web.vala') diff --git a/src/web/web.vala b/src/web/web.vala index 98c6095..0bfa08d 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -654,7 +654,7 @@ public class WebServer { bbd = new DateTime.from_unix_local(0); } - if(amount >= 1 && price >= 1) { + if(amount >= 1 && price >= 0) { db.restock(session.user, id, amount, price, supplier, bbd.to_unix()); template.replace("AMOUNT", @"$amount"); template.replace("PRICE", @"$price"); -- cgit v1.2.3