protecting against null circmod count map
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 7 Jun 2008 12:37:23 +0000 (12:37 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 7 Jun 2008 12:37:23 +0000 (12:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9787 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/backend/circ/circ_lib.js

index 621e453..c708dbf 100644 (file)
@@ -209,7 +209,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 : {};
 }
 
 /* useful for testing */