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 452c8645f3
commit a380a6c774

View File

@@ -1546,7 +1546,7 @@ function PMA_getTab($tab)
} elseif (!empty($tab['active'])
|| (isset($GLOBALS['active_page'])
&& $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';
}