diff --git a/libraries/Menu.class.php b/libraries/Menu.class.php
index d6de4af77e..adbc5081fa 100644
--- a/libraries/Menu.class.php
+++ b/libraries/Menu.class.php
@@ -273,6 +273,10 @@ class PMA_Menu
$tabs['search']['icon'] = 'b_search.png';
$tabs['search']['text'] = __('Search');
$tabs['search']['link'] = 'tbl_select.php';
+ $tabs['search']['active'] = in_array(
+ basename($GLOBALS['PMA_PHP_SELF']),
+ array('tbl_select.php', 'tbl_zoom_select.php')
+ );
if (! $db_is_information_schema) {
$tabs['insert']['icon'] = 'b_insrow.png';
diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php
index 158f712799..be354cadea 100644
--- a/libraries/TableSearch.class.php
+++ b/libraries/TableSearch.class.php
@@ -834,7 +834,7 @@ EOT;
);
unset($choices);
- $html_output .= '
';
+ $html_output .= '
';
return $html_output;
}
@@ -1112,48 +1112,41 @@ EOT;
*/
public function getSelectionForm($goto, $dataLabel = null)
{
- $html_output = '';
- $html_output .= '
';
- } else {
- $html_output .= '';
- }
+ $html_output .= '';
return $html_output;
}