bug [navi] Wrong icon for view (MySQL 5.5)

This commit is contained in:
Marc Delisle
2011-10-10 08:49:41 -04:00
parent 6fec80c614
commit a6fc7ac928
2 changed files with 3 additions and 1 deletions

View File

@@ -625,7 +625,8 @@ function PMA_displayTableList($tables, $visible = false,
.'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable']
. '" >'
.'<img class="icon"';
if ('VIEW' === strtoupper($table['Comment'])) {
if (PMA_Table::isView($table_db, $table['Name'])) {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
} else {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';