From a676a689e2ab03be94be351e21d2147f1befe844 Mon Sep 17 00:00:00 2001 From: Jo Michael Date: Sun, 29 Apr 2012 02:46:16 +0200 Subject: [PATCH] Fix new checkstyle ControlStructures warnings --- libraries/display_tbl.lib.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 43fdd43ecf..99dbd03b09 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -896,14 +896,14 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, ' . "\n"; } // end vertical mode - } - // ... elseif no button, displays empty(ies) col(s) if required - elseif (($GLOBALS['cfg']['RowActionLinks'] == 'left' + } elseif (($GLOBALS['cfg']['RowActionLinks'] == 'left' || $GLOBALS['cfg']['RowActionLinks'] == 'both') && ($is_display['edit_lnk'] != 'nn' || $is_display['del_lnk'] != 'nn')) { + // ... elseif no button, displays empty(ies) col(s) if required + $vertical_display['emptypre'] = ($is_display['edit_lnk'] != 'nn' && $is_display['del_lnk'] != 'nn') ? 4 : 0; if ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontal' @@ -938,14 +938,14 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, } else { $vertical_display['textbtn'] = ' ' . "\n"; } // end vertical mode - } - // ... elseif display an empty column if the actions links are disabled to - // match the rest of the table - elseif ($GLOBALS['cfg']['RowActionLinks'] == 'none' + } elseif ($GLOBALS['cfg']['RowActionLinks'] == 'none' && ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontal' || $_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped') ) { + // ... elseif display an empty column if the actions links are disabled to + // match the rest of the table + echo ''; }