--- loncom/homework/lonhomework.pm 2003/03/10 20:03:55 1.114
+++ loncom/homework/lonhomework.pm 2003/03/25 23:07:07 1.117
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.114 2003/03/10 20:03:55 albertel Exp $
+# $Id: lonhomework.pm,v 1.117 2003/03/25 23:07:07 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -422,7 +422,7 @@ sub editxmlmode {
my ($request,$file) = @_;
my $result;
my $problem=&Apache::lonnet::getfile($file);
- if ($problem == -1) {
+ if ($problem eq -1) {
&Apache::lonxml::error(" Unable to find $file");
$problem='';
}
@@ -478,7 +478,7 @@ sub renderpage {
foreach my $target (@targets) {
#my $t0 = [&gettimeofday()];
my $problem=&Apache::lonnet::getfile($file);
- if ($problem == -1) {
+ if ($problem eq -1) {
&Apache::lonxml::error(" Unable to find $file");
$problem='';
}
@@ -531,7 +531,7 @@ sub get_template_list {
}
}
if (@allnames && !$result) {
- $result="\n\n';
}
return $result;