improved fix against bug #542524 (Wrong interval is displayed)

This commit is contained in:
Loïc Chapeaux
2002-04-17 19:58:56 +00:00
parent 992e980d8f
commit 4050a2f730

View File

@@ -1288,7 +1288,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
$selectstring = '';
}
$last_shown_rec = ($GLOBALS['session_max_rows'] == 'all' || $pos_next > $total)
? $total
? $total - 1
: $pos_next - 1;
PMA_showMessage($GLOBALS['strShowingRecords'] . " $pos - $last_shown_rec ($total " . $GLOBALS['strTotal'] . $selectstring . ')');
} else {