From 40593910ef2fc201129fcc0177f502f391c3e2b3 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 3 Jul 2002 15:04:06 +0000 Subject: [PATCH] bug 576786 --- ChangeLog | 1 + libraries/display_tbl.lib.php3 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f0140828e..1d80086358 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ * left.php3: the - as first choice is not clear * tbl_properties_table_info.php3, tbl_properties_links.php3: bug 576776: ShowAll never displayed + * display_tbl.lib.php3: bug 576786: printview and ModifyDeleteAtRight 2002-07-01 Alexander M. Turek * sql.php3: Completed fix against bug #575867 (Error with limit or load in diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index dc87c43863..38d26fcb88 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -677,8 +677,10 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ } // ... else if no button, displays empty cols if required + // (unless coming from Browse mode print view) else if ($GLOBALS['cfg']['ModifyDeleteAtRight'] - && ($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn')) { + && ($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn') + && (!$GLOBALS['is_header_sent'])) { $vertical_display['emptyafter'] = ($is_display['edit_lnk'] != 'nn' && $is_display['del_lnk'] != 'nn') ? 2 : 1; if ($disp_direction == 'horizontal') { echo "\n";