Protect against empty lists of linked bib searches
authorberick <berick@esilibrary.com>
Thu, 26 May 2011 18:44:48 +0000 (14:44 -0400)
committerberick <berick@esilibrary.com>
Thu, 26 May 2011 18:44:48 +0000 (14:44 -0400)
commit062476cc6eeb2aa4fea261810eb3e938e1352677
treeab8df0e999dc8d9886bf6cd49d92a9f2b1d6e364
parentf5b5b1576770c2f976a8fc6243125a0e9297d3cf
Protect against empty lists of linked bib searches

Instead of returning undef when passed an empty list of bibs, always
return an array from
open-ils.cat.authority.records.count_linked_bibs
Apart from consistency, this prevents JS errors in the Manage
Authorities UI.

Signed-off-by: berick <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/Authority.pm