[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 11 Dec 2002 14:44:24 -0000
www Wed Dec 11 09:44:24 2002 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
One can make templates defunct by setting their name to empty-string.
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.103 loncom/homework/lonhomework.pm:1.104
--- loncom/homework/lonhomework.pm:1.103 Thu Dec 5 17:59:37 2002
+++ loncom/homework/lonhomework.pm Wed Dec 11 09:44:24 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.103 2002/12/05 22:59:37 albertel Exp $
+# $Id: lonhomework.pm,v 1.104 2002/12/11 14:44:24 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -470,7 +470,7 @@
$result=$file;
last;
} else {
- push (@allnames, $name);
+ if ($name) { push (@allnames, $name); }
}
}
if (@allnames && !$result) {