From 70949dd26ad21a670a74ba5ca2f53fdebf283c65 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 7 Nov 2005 11:59:30 +0000 Subject: [PATCH] Undefined variable: db_is_information_schema --- ChangeLog | 1 + db_details_db_info.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index b214bdbc5..c48bdd1dc 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2005-11-06 Sebastian Mendel * libraries/display_tbl.lib.php: bug #985399 MIME-based in print view / need to select the pk + * db_details_db_info.php: Undefined variable: db_is_information_schema 2005-11-06 Marc Delisle * lang/norwegian: Update, thanks to Sven-Erik Andersen diff --git a/db_details_db_info.php b/db_details_db_info.php index cf8a689a9..aab024e03 100644 --- a/db_details_db_info.php +++ b/db_details_db_info.php @@ -9,6 +9,13 @@ require_once('./libraries/common.lib.php'); PMA_checkParameters(array('db')); +if ( PMA_MYSQL_INT_VERSION >= 50002 && $db == 'information_schema' ) { + $cfg['ShowStats'] = false; + $db_is_information_schema = true; +} else { + $db_is_information_schema = false; +} + function fillTooltip( &$tooltip_truename, &$tooltip_aliasname, &$tmp ) { $tooltip_truename[$tmp['Name']] = ($GLOBALS['cfg']['ShowTooltipAliasTB'] && $GLOBALS['cfg']['ShowTooltipAliasTB'] != 'nested' ? (!empty($tmp['Comment']) ? $tmp['Comment'] . ' ' : $tmp['Name']) : $tmp['Name']); $tooltip_aliasname[$tmp['Name']] = ($GLOBALS['cfg']['ShowTooltipAliasTB'] && $GLOBALS['cfg']['ShowTooltipAliasTB'] != 'nested' ? $tmp['Name'] : (!empty($tmp['Comment']) ? $tmp['Comment'] . ' ' : $tmp['Name']));