avoid marking the Browse tab active after a click, when there are no rows
This commit is contained in:
@@ -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';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user