Undefined variable: db_is_information_schema

This commit is contained in:
Sebastian Mendel
2005-11-07 11:59:30 +00:00
parent f64067e1e8
commit 70949dd26a
2 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2005-11-06 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* 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 <lem9@users.sourceforge.net>
* lang/norwegian: Update, thanks to Sven-Erik Andersen

View File

@@ -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']));