1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix Bookmark class cache on getParams

Introduced by: db01d6a9da

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2021-06-16 22:59:15 +02:00
parent b59bf1fc8a
commit 7c36051fe2

View File

@@ -213,6 +213,7 @@ class Bookmark
*
* @return array|false the bookmark parameters for the current user
*
* @staticvar array|false|null $cfgBookmark
* @access public
*/
public static function getParams(string $user)
@@ -228,14 +229,18 @@ class Bookmark
$relation = new Relation($dbi);
$cfgRelation = $relation->getRelationsParam();
if ($cfgRelation['bookmarkwork']) {
return [
$cfgBookmark = [
'user' => $user,
'db' => $cfgRelation['db'],
'table' => $cfgRelation['bookmark'],
];
return $cfgBookmark;
}
return false;
$cfgBookmark = false;
return $cfgBookmark;
}
/**