From 030d241130d20ac30c599772fe9e3b0faf32f560 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 5 Feb 2016 21:29:03 +0100 Subject: [PATCH] Should fix a bug in Travis. --- resources/views/reports/partials/balance.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/reports/partials/balance.twig b/resources/views/reports/partials/balance.twig index 1643123c82..54cc50ed30 100644 --- a/resources/views/reports/partials/balance.twig +++ b/resources/views/reports/partials/balance.twig @@ -27,7 +27,11 @@ {{ balanceLine.getTitle }} - {{ balanceLine.getBudget.amount|formatAmount }} + {% if(balanceLine.getBudget.amount) %} + {{ balanceLine.getBudget.amount|formatAmount }} + {% else %} + {{ '0'|formatAmount }} + {% endif %} {% else %} {{ balanceLine.getTitle }}