]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 2 Feb 2015 14:34:53 +0000 (11:34 -0300)
commitc9af47b86c653946916349ea021171b99f6bb44d
tree20921711a893af003ff75c613691d1b5b0d5f13c
parentac3f497f64c1854a275fe894c1070f5888c1c302
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>
admin/auth_subfields_structure.pl