From b9a53f9c0e03c894984c3ef593018082a30d7e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 11 Jan 2006 09:54:45 +0000 Subject: [PATCH] Do not fail if no server is defined. --- ChangeLog | 3 +++ main.php | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e425d829..53038878e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2006-01-11 Michal Čihař + * main.php: Do not fail if no server is defined. + 2006-01-10 Marc Delisle * libraries/sqlparser.lib.php: bug #1394479, problem detecting ending semi-colon, generates a SHOW KEYS FROM no table name diff --git a/main.php b/main.php index 819428f68..2a616c1a1 100644 --- a/main.php +++ b/main.php @@ -212,10 +212,12 @@ echo '

phpMyAdmin - ' . PMA_VERSION . '

' echo '
    ' . "\n"; -PMA_printListItem( $strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(), - 'li_mysql_client_version' ); -PMA_printListItem( $strUsedPhpExtensions . ': ' . $GLOBALS['cfg']['Server']['extension'], - 'li_used_php_extension' ); +if ( $server > 0 ) { + PMA_printListItem( $strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(), + 'li_mysql_client_version' ); + PMA_printListItem( $strUsedPhpExtensions . ': ' . $GLOBALS['cfg']['Server']['extension'], + 'li_used_php_extension' ); +} // Displays language selection combo if (empty($cfg['Lang'])) {