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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 25 Mar 2003 23:07:08 -0000


albertel		Tue Mar 25 18:07:08 2003 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - better as str compare
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.116 loncom/homework/lonhomework.pm:1.117
--- loncom/homework/lonhomework.pm:1.116	Tue Mar 25 17:51:48 2003
+++ loncom/homework/lonhomework.pm	Tue Mar 25 18:07:07 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.116 2003/03/25 22:51:48 albertel Exp $
+# $Id: lonhomework.pm,v 1.117 2003/03/25 23:07:07 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -478,7 +478,7 @@
   foreach my $target (@targets) {
     #my $t0 = [&gettimeofday()];
     my $problem=&Apache::lonnet::getfile($file);
-    if ($problem == -1) {
+    if ($problem eq -1) {
       &Apache::lonxml::error("<b> Unable to find <i>$file</i></b>");
       $problem='';
     }