From b0988a7b00d435baba0c01909b964a69ccbaee28 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 3 Oct 2015 22:32:36 +0200 Subject: [PATCH] Fix zero division. --- resources/twig/budgets/show.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/twig/budgets/show.twig b/resources/twig/budgets/show.twig index 92312c715b..7e9faa3e71 100644 --- a/resources/twig/budgets/show.twig +++ b/resources/twig/budgets/show.twig @@ -70,7 +70,7 @@ {% set overspent = spentInRep > rep.amount %} {% if overspent %} - {% set pct = (spentInRep != 0 ? (rep.amount / spent)*100 : 0) %} + {% set pct = (spentInRep != 0 ? (rep.amount / spentInRep)*100 : 0) %}