diff --git a/ChangeLog b/ChangeLog index 7ce867af7d..18df9f1ffa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog ====================== 4.0.5.0 (not yet released) +- bug #3977 Not detected configuration storage 4.0.4.0 (not yet released) - bug #3959 Using DefaultTabDatabase in NavigationTree for Database Click diff --git a/libraries/RecentTable.class.php b/libraries/RecentTable.class.php index 9468eeb1c0..101cf3283b 100644 --- a/libraries/RecentTable.class.php +++ b/libraries/RecentTable.class.php @@ -85,12 +85,15 @@ class PMA_RecentTable = " SELECT `tables` FROM " . $this->_pmaTable . " WHERE `username` = '" . $GLOBALS['cfg']['Server']['user'] . "'"; - $row = PMA_DBI_fetch_array(PMA_queryAsControlUser($sql_query)); - if (isset($row[0])) { - return json_decode($row[0], true); - } else { - return array(); + $return = array(); + $result = PMA_queryAsControlUser($sql_query, false); + if ($result) { + $row = PMA_DBI_fetch_array($result); + if (isset($row[0])) { + $return = json_decode($row[0], true); + } } + return $return; } /**