--- loncom/homework/lonhomework.pm 2003/03/11 18:43:08 1.115
+++ 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.115 2003/03/11 18:43:08 www 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='';
}