mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
fixed an off by one problem
This commit is contained in:
parent
d6bf643ed2
commit
c461da0bbd
@ -227,7 +227,7 @@
|
|||||||
unset($value['rows']['sel_options']);
|
unset($value['rows']['sel_options']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($value['start'] > $total)
|
if ($value['start'] >= $total)
|
||||||
{
|
{
|
||||||
$value['start'] = 0;
|
$value['start'] = 0;
|
||||||
$total = $obj->$method($value,$value['rows'],$readonlys['rows']);
|
$total = $obj->$method($value,$value['rows'],$readonlys['rows']);
|
||||||
@ -447,7 +447,7 @@
|
|||||||
}
|
}
|
||||||
elseif ($value['last'])
|
elseif ($value['last'])
|
||||||
{
|
{
|
||||||
$value['start'] = (int) (($old_value['total']-2) / $max) * $max;
|
$value['start'] = (int) (($old_value['total']-1) / $max) * $max;
|
||||||
unset($value['last']);
|
unset($value['last']);
|
||||||
$loop = True;
|
$loop = True;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user