--- loncom/interface/londocs.pm 2004/09/27 15:20:23 1.147 +++ loncom/interface/londocs.pm 2004/10/26 15:24:20 1.148 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.147 2004/09/27 15:20:23 matthew Exp $ +# $Id: londocs.pm,v 1.148 2004/10/26 15:24:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -989,15 +989,17 @@ sub editor { # ---------------------------------------------------------------- End commands # ---------------------------------------------------------------- Print screen my $idx=0; + my $shown=0; $r->print(''); foreach (@Apache::lonratedt::order) { my ($name,$url)=split(/\:/,$Apache::lonratedt::resources[$_]); unless ($name) { $name=(split(/\//,$url))[-1]; } - unless ($name) { next; } + unless ($name) { $idx++; next; } $r->print(&entryline($idx,$name,$url,$folder,$allowed,$_,$coursenum)); $idx++; + $shown++; } - unless ($idx) { + unless ($shown) { $r->print(''); } $r->print('
'.&mt('Currently no documents.').'
');