prevent any possible infinite looping
authorivan <ivan>
Mon, 1 Jul 2002 22:38:21 +0000 (22:38 +0000)
committerivan <ivan>
Mon, 1 Jul 2002 22:38:21 +0000 (22:38 +0000)
FS/FS/part_export/textradius.pm

index 691753f..de0158b 100644 (file)
@@ -55,7 +55,7 @@ sub textradius_insert { #subroutine, not method
 
   #silly arg processing
   my($att, @check);
 
   #silly arg processing
   my($att, @check);
-  push @check, $att while ($att=shift @attributes) ne '-';
+  push @check, $att while @attributes && ($att=shift @attributes) ne '-';
   my %check = @check;
   my %reply = @attributes;
 
   my %check = @check;
   my %reply = @attributes;