--- rat/lonuserstate.pm 2000/11/01 22:21:36 1.15 +++ rat/lonuserstate.pm 2000/11/02 15:53:17 1.16 @@ -11,7 +11,7 @@ # 7/1,7/3,7/4,7/7,7/8,7/10 Gerd Kortemeyer) # # 7/15,7/17,7/18,8/1,8/2,8/4,8/5,8/21,8/22,8/23,8/30, -# 9/2,9/4,9/29,9/30,10/2,10/11,10/30,10/31,11/1 Gerd Kortemeyer +# 9/2,9/4,9/29,9/30,10/2,10/11,10/30,10/31,11/1,11/2 Gerd Kortemeyer package Apache::lonuserstate; @@ -355,7 +355,6 @@ sub readmap { "Could not tie coursemap $fn for $uri."); } &Apache::lonmsg::author_res_msg($ENV{'request.course.uri'},$errtext); - &evalstate(); return $errtext; } @@ -379,7 +378,7 @@ sub evalstate { my $line=$_; chomp($line); my ($condition,$weight)=split(/\:/,$_); - $condition=~s/\&([\w\.]+)/\&varval\(\'$1\'\)/g; + $condition=~s/\[([\w\.]+)\]/\&varval\(\'$1\'\)/g; if ($safeeval->reval($condition)) { if ($weight eq 'force') { $state.='3';