[LON-CAPA-cvs] cvs: loncom /homework essayresponse.pm

raeburn raeburn@source.lon-capa.org
Wed, 21 Jan 2009 16:43:31 -0000


raeburn		Wed Jan 21 16:43:31 2009 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - Eliminate unnecessary foreach loop.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.99 loncom/homework/essayresponse.pm:1.100
--- loncom/homework/essayresponse.pm:1.99	Wed Jan 21 16:17:35 2009
+++ loncom/homework/essayresponse.pm	Wed Jan 21 16:43:30 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.99 2009/01/21 16:17:35 raeburn Exp $
+# $Id: essayresponse.pm,v 1.100 2009/01/21 16:43:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -282,9 +282,7 @@
                 }
             }
         } else {
-            foreach my $file (@submitted_files) {
-                push(@acceptable_files,$file);
-            }
+            @acceptable_files = @submitted_files;
         }
         my $maxfilesize=&Apache::lonnet::EXT("resource.$part".'_'."$id.maxfilesize");
         if (!$maxfilesize) {