Undefined index: host

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2016-01-02 08:51:04 -05:00
parent 9f5ef70d99
commit 59fe5e234d
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ phpMyAdmin - ChangeLog
- issue #11788 Avoid conversion of MySQL error messages
- issue #11792 Undefined index: parameters
- issue #11802 Undefined index: field_name_orig
- issue Undefined index: host
4.5.3.1 (2015-12-25)
- issue #11774 Undefined offset 2

View File

@ -167,6 +167,9 @@ class PMA_Menu
$retval = '';
$tbl_is_view = $GLOBALS['dbi']->getTable($this->_db, $this->_table)
->isView();
if (empty($GLOBALS['cfg']['Server']['host'])) {
$GLOBALS['cfg']['Server']['host'] = '';
}
$server_info = ! empty($GLOBALS['cfg']['Server']['verbose'])
? $GLOBALS['cfg']['Server']['verbose']
: $GLOBALS['cfg']['Server']['host'];