From: miker Date: Sun, 23 Nov 2008 17:56:13 +0000 (+0000) Subject: avoid duplicates in the @fatal list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3aac194c2dae2727735b39afebf3eb38bd452635;p=Evergreen.git avoid duplicates in the @fatal list git-svn-id: svn://svn.open-ils.org/ILS/trunk@11317 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm b/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm index 51288421ee..0351d46956 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm @@ -59,6 +59,7 @@ sub retrieve_penalties { if($p->standing_penalty->block_list =~ /$m/) { push(@fatal, $p->name); $pushed = 1; + last; } } }