do not try to display a tab that was not built

This commit is contained in:
Marc Delisle
2009-08-22 11:22:50 +00:00
parent 869571ee16
commit 15441ded5d
233 changed files with 76811 additions and 2473 deletions

View File

@@ -63,6 +63,13 @@ $tabs['search']['icon'] = 'b_search.png';
$tabs['search']['text'] = $strSearch;
$tabs['search']['link'] = 'tbl_select.php';
if(PMA_Tracker::isActive())
{
$tabs['tracking']['icon'] = 'eye.png';
$tabs['tracking']['text'] = "Tracking";
$tabs['tracking']['link'] = 'tbl_tracking.php';
}
if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
$tabs['insert']['icon'] = 'b_insrow.png';
$tabs['insert']['link'] = 'tbl_change.php';
@@ -127,6 +134,12 @@ if ($table_info_num_rows == 0 && !$tbl_is_view) {
echo PMA_generate_html_tabs($tabs, $url_params);
unset($tabs);
if(PMA_Tracker::isActive() and PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"]))
{
$msg = PMA_Message::notice('<a href="tbl_tracking.php?'.$url_query.'">'.sprintf($strTrackingActivated, $GLOBALS["db"], $GLOBALS["table"]).'</a>');
$msg->display();
}
/**
* Displays a message
*/