From: erickson Date: Sat, 7 Jun 2008 12:37:17 +0000 (+0000) Subject: protecting against null circmod count map X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ceb9d7661c298d70de11e4d49763d781db8aaf69;p=Evergreen.git protecting against null circmod count map git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9786 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_lib.js b/Open-ILS/src/javascript/backend/circ/circ_lib.js index a0f2ec7192..75f8140cfa 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_lib.js +++ b/Open-ILS/src/javascript/backend/circ/circ_lib.js @@ -208,7 +208,8 @@ function hasCommonAncestor( org1, org2, depth ) { function checkoutsByCircModifier(userid) { var key = scratchKey(); __OILS_FUNC_userCircsByCircmod(scratchPad(key), userid); - return getScratch(key); + var val = getScratch(key); + return (val) ? val : {}; }