--- loncom/homework/lonhomework.pm 2003/03/10 20:03:55 1.114
+++ loncom/homework/lonhomework.pm 2003/03/25 22:51:48 1.116
@@ -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.116 2003/03/25 22:51:48 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='';
}
@@ -531,7 +531,7 @@ sub get_template_list {
}
}
if (@allnames && !$result) {
- $result="\n\n';
}
return $result;