]> git.koha-community.org Git - koha.git/commit
Bug 29078: Resolve division by zero in touch_all scripts
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 22 Sep 2021 14:06:07 +0000 (14:06 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Sep 2021 13:12:45 +0000 (15:12 +0200)
commita0ebdab046bc647b89d8c95ada12a28087b6d5b8
tree8be63f2c7e94b588df8862737940bf1a79b3ee8d
parente61a928130293ffa8f09947ba0555403b7b4100b
Bug 29078: Resolve division by zero in touch_all scripts

Illegal division by zero at misc/maintenance/touch_all_biblios.pl line 102.

Trivial fix.
Funny that the percentage is not even shown without verbose flag ;)

Test plan:
Run misc/maintenance/touch_all_biblios.pl -where 'biblionumber<0'
You should now see:
Good: 0, Bad: 0 (of 0) in 0 seconds

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/maintenance/touch_all_biblios.pl
misc/maintenance/touch_all_items.pl