diff --git a/ChangeLog b/ChangeLog index fd62258b8..36131b392 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2001-05-09 Marc Delisle * new messages in /lang + * browse table bug (#421879) 2001-05-08 Korakot Chaovavanich * In edit page, replace dropdown with radio if short enough diff --git a/lib.inc.php3 b/lib.inc.php3 index 4f7682b36..60e73edb6 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -16,14 +16,15 @@ function show_table_navigation($pos_next, $pos_prev, $dt_result) {
" + onsubmit="return 0 ? "true" : "false" ); ?>" action= >" >
-
" + " action= >" > @@ -269,6 +270,10 @@ function display_table ($dt_result) { $pos_next = $pos + $cfgMaxRows; $pos_prev = $pos - $cfgMaxRows; + if ($pos_prev < 0) { + $pos_prev = 0; + } + if(isset($total) && $total>1) { if(isset($SelectNumRows) && $SelectNumRows!=$total) $selectstring = ", $SelectNumRows $strSelectNumRows";