fix to jump back to the start, if search returns less items than acutal position is

This commit is contained in:
Ralf Becker 2002-09-22 18:10:06 +00:00
parent f8e0994cfb
commit 74ffa874bd

View File

@ -40,6 +40,11 @@
if ($do_get_rows)
{
$value['rows'] = ExecMethod($value['get_rows'],$value);
if ($value['start'] > $value['rows'][0])
{
$value['start'] = 0;
$value['rows'] = ExecMethod($value['get_rows'],$value);
}
$GLOBALS['phpgw_info']['etemplate']['extension_data']['nextmatch_widget'][$cell['name']]['total'] = $value['rows'][0];
}
if ($cell['size'])