From 94e152694b121a899c428b14ff860a324c1ebfc6 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 4 Mar 2008 20:37:23 +0000 Subject: [PATCH] protecting against null org settings git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8861 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/org_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/common/js/org_utils.js b/Open-ILS/web/opac/common/js/org_utils.js index 3426bfb14c..d00b7b30b2 100644 --- a/Open-ILS/web/opac/common/js/org_utils.js +++ b/Open-ILS/web/opac/common/js/org_utils.js @@ -6,7 +6,7 @@ function fetchOrgSettingDefault(orgId, name) { var req = new Request(FETCH_ORG_SETTING, orgId, name); req.send(true); var res = req.result(); - return res.value; + return (res) ? res.value : null; } /* takes an org unit or id and return the numeric depth */ -- 2.11.0