avoid marking the Browse tab active after a click, when there are no rows

This commit is contained in:
Marc Delisle
2007-07-24 12:40:40 +00:00
parent 12d05e7baa
commit 0c804f502c

View File

@@ -1546,7 +1546,7 @@ function PMA_getTab($tab)
} elseif (!empty($tab['active']) } elseif (!empty($tab['active'])
|| (isset($GLOBALS['active_page']) || (isset($GLOBALS['active_page'])
&& $GLOBALS['active_page'] == $tab['link']) && $GLOBALS['active_page'] == $tab['link'])
|| basename(PMA_getenv('PHP_SELF')) == $tab['link']) || (basename(PMA_getenv('PHP_SELF')) == $tab['link'] && empty($tab['warning'])))
{ {
$tab['class'] = 'active'; $tab['class'] = 'active';
} }