Libriotech / koha-plugin-stateofgdpr

A small Koha plugin to highlight how GDPR-compliant a Koha site is
GNU General Public License v3.0
1 stars 0 forks source link

Illegal division by zero #1

Closed fridobox closed 4 years ago

fridobox commented 4 years ago

Hi,

Great plugin :+1:

I've an error with UNIMARC demo database :

Template process failed: undef error - Illegal division by zero at /mnt/git/koha-plugin-stateofgdpr/Koha/Plugin/No/Libriotech/StateOfGDPR/main.tt line 108.

Best regards

MagnusEnger commented 4 years ago

Thanks! And thanks for reporting the problem.

Guess this does not work well if old_issues = 0...

[% old_issues_anonymized * 100 / old_issues %]
fridobox commented 4 years ago

It's the demo effect. I have tested with the sandbox demo dump which is not a "real" database ;)