From 872f1493c76c54217646a2d2a91efd44df825777 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 9 Dec 2009 15:26:12 +0100 Subject: [PATCH] =?utf8?q?Limit=20in=20all=5Fparts=20ist=20nicht=20nur=20f?= =?utf8?q?=C3=BCr=20top100=20da.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/IC.pm b/SL/IC.pm index 426fc9fc3..50c1172b0 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -937,7 +937,9 @@ sub all_parts { #my $order_clause = " ORDER BY $form->{sort} $sort_order"; - my $limit_clause = " LIMIT 100" if $form->{top100}; + my $limit_clause; + $limit_clause = " LIMIT 100" if $form->{top100}; + $limit_clause = " LIMIT " . $form->{limit} * 1 if $form->{limit} * 1; #=== joins and complicated filters ========# -- 2.20.1