--- loncom/xml/lonxml.pm 2003/02/26 17:52:14 1.240
+++ loncom/xml/lonxml.pm 2003/03/25 22:51:48 1.241
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.240 2003/02/26 17:52:14 albertel Exp $
+# $Id: lonxml.pm,v 1.241 2003/03/25 22:51:48 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -795,7 +795,7 @@ sub default_homework_load {
my ($safeeval)=@_;
&Apache::lonxml::debug('Loading default_homework');
my $default=&Apache::lonnet::getfile('/home/httpd/html/res/adm/includes/default_homework.lcpm');
- if ($default == -1) {
+ if ($default eq -1) {
&Apache::lonxml::error("Unable to find default_homework.lcpm");
} else {
&Apache::run::run($default,$safeeval);
@@ -1187,7 +1187,7 @@ sub handler {
my %mystyle;
my $result = '';
my $filecontents=&Apache::lonnet::getfile($file);
- if ($filecontents == -1) {
+ if ($filecontents eq -1) {
$result=(<