]> git.koha-community.org Git - koha.git/commit
Bug 13544: Make it explicit that getauthtypes returns a hash ref
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 9 Jan 2015 15:01:35 +0000 (16:01 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 9 Feb 2015 20:36:59 +0000 (09:36 +1300)
commit1cf327125a2ab4175882355a2bd835aca2e7b47b
treea8bad93fd7e957ad00f023eb048b9df5a4029f8f
parentf5309088063b1ef36732f76cedf31d41cd10514a
Bug 13544: Make it explicit that getauthtypes returns a hash ref

Prior to perl 5.12 keys can only operate on a hash.

Test plan:
With perl 5.10, access to admin/auth_subfields_structure.pl.
Without this patch, you get:
Type of arg 1 to keys must be hash (not subroutine entry) at
/home/koha/src/admin/auth_subfields_structure.pl line 102, near
"getauthtypes)"

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Confirmed problem and tested patch on a sandbox, signed off locally.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit c9af47b86c653946916349ea021171b99f6bb44d)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
admin/auth_subfields_structure.pl