Index: openacs-4/packages/lars-blogger/www/blog.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/www/blog.tcl,v diff -u -r1.8.2.3 -r1.8.2.4 --- openacs-4/packages/lars-blogger/www/blog.tcl 13 Mar 2003 18:08:18 -0000 1.8.2.3 +++ openacs-4/packages/lars-blogger/www/blog.tcl 27 Mar 2003 13:11:37 -0000 1.8.2.4 @@ -43,13 +43,15 @@ set admin_p [ad_permission_p $package_id admin] -set num_entries [db_string num_entries {}] +set limit_clause {} -if { $num_entries < 3 } { - set date_clause {1=1} - set limit_clause [db_map limit_clause] -} else { - set limit_clause {} +if { ![string equal $type "archive"] } { + set num_entries [db_string num_entries {}] + + if { $num_entries < 3 } { + set date_clause {1=1} + set limit_clause [db_map limit_clause] + } } db_multirow blog blog {}