[LON-CAPA-cvs] cvs: loncom /homework response.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 14 Jul 2006 18:40:43 -0000
albertel Fri Jul 14 14:40:43 2006 EDT
Modified files:
/loncom/homework response.pm
Log:
- check_status was not working correctly with part 0
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.142 loncom/homework/response.pm:1.143
--- loncom/homework/response.pm:1.142 Wed Jun 28 17:12:50 2006
+++ loncom/homework/response.pm Fri Jul 14 14:40:41 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.142 2006/06/28 21:12:50 albertel Exp $
+# $Id: response.pm,v 1.143 2006/07/14 18:40:41 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -989,7 +989,7 @@
# a return of 3 means it after the answer date
sub check_status {
my ($id)=@_;
- if (!$id) { $id=$Apache::linputtags::part; }
+ if (!defined($id)) { $id=$Apache::inputtags::part; }
my $curtime=&Apache::lonnet::EXT('system.time');
my $opendate=&Apache::lonnet::EXT("resource.$id.opendate");
my $duedate=&Apache::lonnet::EXT("resource.$id.duedate");