]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 13 Oct 2012 02:00:28 +0000 (22:00 -0400)
commita18636dcd295e6b70e0908c0245a2f5ebff4723c
treeec49c56637c2443befdd8a381268233d59c9358a
parenta33bf1b8fd4011c7597cb1a668f1005c40d31d92
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>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
admin/marctagstructure.pl