Skip to content

Commit

Permalink
Fix not isset $GLOBALS['dblist']
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jan 6, 2020
1 parent 71e67af commit 156231d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/DatabaseInterface.php
Expand Up @@ -1570,7 +1570,7 @@ public function initRelationParamsCache()
}
}
$cfgRelation = $this->relation->getRelationsParam();
if (empty($cfgRelation['db'])) {
if (empty($cfgRelation['db']) && isset($GLOBALS['dblist'])) {
if ($GLOBALS['dblist']->databases->exists('phpmyadmin')) {
$this->relation->fixPmaTables('phpmyadmin', false);
}
Expand Down

0 comments on commit 156231d

Please sign in to comment.