diff --git a/ChangeLog b/ChangeLog index 63d45b7d87..f45c29214d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -103,6 +103,7 @@ phpMyAdmin - ChangeLog - issue #13084 Do not point users to setup when it is disabled - issue #12660 Delete only phpMyAdmin cookies on upgrade - issue #13088 Fixed editing of rows with text primary key +- issue #13092 Do not try to sync favorite tables if configuration storage is not enabled 4.6.6 (2017-01-23) - issue #12759 Fix Notice regarding 'Undefined index: old_usergroup' diff --git a/libraries/RecentFavoriteTable.php b/libraries/RecentFavoriteTable.php index 9a77c527b4..c2f11ffddd 100644 --- a/libraries/RecentFavoriteTable.php +++ b/libraries/RecentFavoriteTable.php @@ -346,10 +346,9 @@ class RecentFavoriteTable if ($server_id == 0) { return ''; } + $cfgRelation = PMA_getRelationsParam(); // Not to show this once list is synchronized. - $is_synced = isset($_SESSION['tmpval']['favorites_synced'][$server_id]) ? - true : false; - if (!$is_synced) { + if ($cfgRelation['favoritework'] && ! isset($_SESSION['tmpval']['favorites_synced'][$server_id])) { $params = array('ajax_request' => true, 'favorite_table' => true, 'sync_favorite_tables' => true); $url = 'db_structure.php' . URL::getCommon($params); diff --git a/libraries/controllers/database/DatabaseStructureController.php b/libraries/controllers/database/DatabaseStructureController.php index 7053d7b5ea..542815f09c 100644 --- a/libraries/controllers/database/DatabaseStructureController.php +++ b/libraries/controllers/database/DatabaseStructureController.php @@ -233,7 +233,10 @@ class DatabaseStructureController extends DatabaseController // Request for Synchronization of favorite tables. if (isset($_REQUEST['sync_favorite_tables'])) { - $this->synchronizeFavoriteTables($fav_instance, $user, $favorite_tables); + $cfgRelation = PMA_getRelationsParam(); + if ($cfgRelation['favoritework']) { + $this->synchronizeFavoriteTables($fav_instance, $user, $favorite_tables); + } return; } $changes = true;