From: erickson Date: Sat, 7 Jun 2008 12:35:54 +0000 (+0000) Subject: protecting against null circmod count map X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b044b5dc6822f7514a951348f9f76d303c8d3118;p=Evergreen.git protecting against null circmod count map git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9785 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 : {}; }