From: Dobrica Pavlinusic Date: Sun, 3 Apr 2011 20:07:30 +0000 (+0200) Subject: fix count from query if needed X-Git-Url: http://git.rot13.org/?p=google-map-tiles.git;a=commitdiff_plain;h=fba830ce019d1307afe8b8e3a92f3a4fcc797d9f fix count from query if needed --- diff --git a/koha.pl b/koha.pl index 8310329..1394cea 100755 --- a/koha.pl +++ b/koha.pl @@ -79,6 +79,8 @@ limit 100 }); $sth->execute( $city, $country ); + $count = $sth->rows if $sth->rows > $count; + my $descript = "$city $country $count items\n
    "; while ( my $row = $sth->fetchrow_hashref ) {