Fix display of 'showing...'

This commit is contained in:
Miles Lott 2001-06-26 03:24:48 +00:00
parent a996d265ef
commit 958d379435
2 changed files with 10 additions and 2 deletions

View File

@ -59,7 +59,11 @@
$t->set_var('left',$left);
$t->set_var('right',$right);
if ($c->total_records > $limit)
if (($start + $limit) > $c->total_records)
{
$lang_showing = lang('showing x - x of x',($start + 1),$c->total_records,$c->total_records);
}
elseif ($c->total_records > $limit)
{
$lang_showing=lang('showing x - x of x',($start + 1),($start + $limit),$c->total_records);
}

View File

@ -90,7 +90,11 @@
$t->set_var('left',$left);
$t->set_var('right',$right);
if ($c->total_records > $limit)
if (($start + $limit) > $c->total_records)
{
$t->set_var('lang_showing',lang('showing x - x of x',($start + 1),$c->total_records,$c->total_records));
}
elseif ($c->total_records > $limit)
{
$t->set_var('lang_showing',lang('showing x - x of x',($start + 1),($start + $limit),$c->total_records));
}