From: erickson Date: Tue, 4 Mar 2008 20:37:23 +0000 (+0000) Subject: protecting against null org settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=94e152694b121a899c428b14ff860a324c1ebfc6;p=Evergreen.git protecting against null org settings git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8861 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 */