LP#1254146 gracefully handle custom trees sans entries
authorBill Erickson <berick@esilibrary.com>
Fri, 22 Nov 2013 19:55:26 +0000 (14:55 -0500)
committerBen Shum <bshum@biblio.org>
Fri, 22 Nov 2013 20:10:31 +0000 (15:10 -0500)
commit8c62b77c5609b0bdd04c04ae8ddc46914fd7e351
tree7e353f603291737808a688c937c2b8866586d175
parent72d3d9a11171975ee4c4b3cf23bc99edc102eba8
LP#1254146 gracefully handle custom trees sans entries

Avoid references to custom tree entries when no tree entries for a
custom tree exist.  Prevents:

egweb: template error: undef error - Can't call method "org_unit" on an
undefined value at
/usr/local/share/perl/5.10.1/OpenILS/WWW/EGCatLoader/Util.pm line 185.\n

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm