From: phasefx Date: Wed, 19 Jan 2011 22:28:13 +0000 (+0000) Subject: whack-a-mole, was getting a null instead of an empty array here, but may be a red... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4830c978a7af2fb0dd8e8e59fb0a57bb0a401254;p=evergreen%2Fjoelewis.git whack-a-mole, was getting a null instead of an empty array here, but may be a red herring git-svn-id: svn://svn.open-ils.org/ILS/trunk@19225 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 3f2a013027..0b43fad4bf 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -948,6 +948,7 @@ patron.display.prototype = { } } var penalties = patron.standing_penalties(); + if (!penalties) { penalties = []; } var dl_flag_opened = false; for (var i = 0; i < penalties.length; i++) { if (penalties[i].standing_penalty().block_list() || penalties[i].standing_penalty().id() == 20 /* ALERT_NOTE */) {