From 59fe5e234d2fa8e80b38ea1b9d3cd158656cc3ea Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 2 Jan 2016 08:51:04 -0500 Subject: [PATCH] Undefined index: host Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/Menu.class.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7b674c6a83..b9852ee1e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/libraries/Menu.class.php b/libraries/Menu.class.php index 08f7f93d0a..d2e8ca12b9 100644 --- a/libraries/Menu.class.php +++ b/libraries/Menu.class.php @@ -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'];