From 385a7f69ac2f3525bf76fe31e3c48305059d51c5 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Mon, 24 Feb 2003 16:15:54 +0000 Subject: [PATCH] Display nav_bar even when only one row is returned, to enable display in vertical/horizontal mode (especially for rotated headers) --- libraries/display_tbl.lib.php3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index bc53b8c3d..76ebd6c70 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -168,9 +168,11 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { if ($do_display['nav_bar'] == '1' || $do_display['sort_lnk'] == '1') { if (isset($unlim_num_rows) && $unlim_num_rows < 2) { - $do_display['nav_bar'] = (string) '0'; + // garvin: force display of navbar for vertical/horizontal display-choice. + // $do_display['nav_bar'] = (string) '0'; $do_display['sort_lnk'] = (string) '0'; } + } // end if (3) // 5. Updates the synthetic var