--- rat/lonuserstate.pm 2001/07/05 18:14:17 1.22 +++ rat/lonuserstate.pm 2001/08/30 21:56:55 1.23 @@ -13,7 +13,7 @@ # 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,11/2,11/14,11/16,11/22,12/28, -# 07/05/01 Gerd Kortemeyer +# 07/05/01,08/30 Gerd Kortemeyer package Apache::lonuserstate; @@ -330,6 +330,7 @@ sub accinit { $#uriparts--; my $uripath=join('/',@uriparts); $uripath=~s/^\/res\///; + if ($uripath) { my $uricond='0'; if (defined($hash{'conditions_'.$resid})) { $uricond=$captured{$hash{'conditions_'.$resid}}; @@ -347,7 +348,8 @@ sub accinit { } else { $acchash{'acc.res.'.$short.'.'.$uripath}= '&'.$urifile.':'.$uricond.'&'; - } + } + } } split(/\,/,$hash{$_}); } } keys %hash;