small fix
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Jul 2005 19:28:05 +0000 (19:28 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Jul 2005 19:28:05 +0000 (19:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1344 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_utils.js

index 8a29a54..e2633ed 100755 (executable)
@@ -110,7 +110,8 @@ function patron_get_checkouts( au, f ) {
                )[0];
 
                if (!f) {
-                       sdump('D_PATRON_UTILS','checkouts = ' + js2JSON(au.checkouts()) + '\n');
+                       sdump('D_PATRON_UTILS','checkouts = ' + js2JSON(checkouts) + '\n');
+                       if (!checkouts) checkouts = [];
                        au.checkouts( checkouts );
                        return checkouts;
                }