Skip to content

Commit 5d59fbc

Browse files
committed
Illegal division by zero
Fixes #1
1 parent 52d6dda commit 5d59fbc

File tree

1 file changed

+1
-1
lines changed
  • Koha/Plugin/No/Libriotech/StateOfGDPR

1 file changed

+1
-1
lines changed

Koha/Plugin/No/Libriotech/StateOfGDPR/main.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
<h2>Old loans</h2>
107107

108-
<p>You have [% old_issues %] old loans. [% old_issues_anonymized %] of these have been anonymized. That is [% old_issues_anonymized * 100 / old_issues %]%.</p>
108+
<p>You have [% old_issues %] old loans. [% old_issues_anonymized %] of these have been anonymized. [% IF old_issues > 0 %]That is [% old_issues_anonymized * 100 / old_issues %]%.[% END %]</p>
109109

110110
<p>The oldest non-anonymized loan is from [% old_issues_nonanon_oldest %].</p>
111111

0 commit comments

Comments
 (0)