Do not fail if no server is defined.

This commit is contained in:
Michal Čihař
2006-01-11 09:54:45 +00:00
parent 32a946d084
commit b9a53f9c0e
2 changed files with 9 additions and 4 deletions

View File

@@ -212,10 +212,12 @@ echo '<h1 xml:lang="en" dir="ltr">phpMyAdmin - ' . PMA_VERSION . '</h1>'
echo '<ul>' . "\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'])) {