mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Fix display of 'showing...'
This commit is contained in:
parent
a996d265ef
commit
958d379435
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user