diff --git a/libraries/DBQbe.class.php b/libraries/DBQbe.class.php index 85933ff1d4..cb86503205 100644 --- a/libraries/DBQbe.class.php +++ b/libraries/DBQbe.class.php @@ -708,20 +708,24 @@ class PMA_DbQbe * * @param integer $column_number Column Number (0,1,2) or more * @param array $selected Selected criteria column name + * @param bool $last_column Whether this is the last column * * @return string HTML for modification cell */ - private function _getAndOrColCell($column_number, $selected = null) - { + private function _getAndOrColCell( + $column_number, $selected = null, $last_column = false + ) { $html_output = ''; - $html_output .= '' . __('Or:') . ''; - $html_output .= ''; - $html_output .= '  ' . __('And:') . ''; - $html_output .= ''; + if (! $last_column) { + $html_output .= '' . __('Or:') . ''; + $html_output .= ''; + $html_output .= '  ' . __('And:') . ''; + $html_output .= ''; + } $html_output .= '
' . __('Ins'); $html_output .= ''; @@ -779,7 +783,8 @@ class PMA_DbQbe } $html_output .= $this->_getAndOrColCell( $new_column_count, - $checked_options + $checked_options, + ($column_index + 1 == $this->_criteria_column_count) ); $new_column_count++; } // end for