diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-06-15 23:32:01 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-06-15 23:32:01 +0200 |
commit | e020a26adcb2e08369d864d7d62bbef1316bf7d0 (patch) | |
tree | e63fe0c4b3cb333035e0335507e1981905bc92c2 /src/web | |
parent | f8edff7c1f1a67b3088296ee842f223a48f4125b (diff) | |
download | serial-barcode-scanner-e020a26adcb2e08369d864d7d62bbef1316bf7d0.tar.bz2 |
fix last commit
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/web.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/web.vala b/src/web/web.vala index 3dcb9aa..1ff8acf 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -963,13 +963,13 @@ public class WebServer { db.cashbox_add(type == "user" ? session.user : -3, amount, timestamp); if(error) { - template.replace("TYPE", type); - template.replace("AMOUNT", amount.to_string()); + template.replace("TYPE", ""); + template.replace("AMOUNT", ""); template.replace("NEW.OK", "none"); template.replace("NEW.FAIL", "block"); } else { - template.replace("TYPE", ""); - template.replace("AMOUNT", ""); + template.replace("TYPE", type); + template.replace("AMOUNT", amount.to_string()); template.replace("NEW.OK", "block"); template.replace("NEW.FAIL", "none"); } |