]> git.koha-community.org Git - koha.git/commit
Bug 8714 - Poorly ordered and triggers warning in marctagstructure.pl
authorMark Tompsett <mtompset@hotmail.com>
Mon, 3 Sep 2012 04:27:58 +0000 (12:27 +0800)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 18 Sep 2012 10:38:20 +0000 (22:38 +1200)
commit5862a73879e8a802de40a545a85686a93f060d76
tree9738021a7611b4e72bd25f457d4df6e9aa1584b1
parent566abd65f87d228d87cab2b66c904f58a82ede4f
Bug 8714 - Poorly ordered and triggers warning in marctagstructure.pl

An array boundary check was after a comparison using the array.
By changing the logic which had " and ( $j < $cnt)" to be at the
beginning "( $j < $cnt ) and ", the warning is no longer shown
in the error log.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
admin/marctagstructure.pl