[open-ils-commits] r11317 - trunk/Open-ILS/src/perlmods/OpenILS/Utils

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Nov 23 12:56:15 EST 2008


Author: miker
Date: 2008-11-23 12:56:13 -0500 (Sun, 23 Nov 2008)
New Revision: 11317

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
Log:
avoid duplicates in the @fatal list

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm	2008-11-23 16:40:49 UTC (rev 11316)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm	2008-11-23 17:56:13 UTC (rev 11317)
@@ -59,6 +59,7 @@
                 if($p->standing_penalty->block_list =~ /$m/) {
                     push(@fatal, $p->name);
                     $pushed = 1;
+                    last;
                 }
             }
         }



More information about the open-ils-commits mailing list