Skip to content

Commit

Permalink
Merge branch 'QA_4_9' into QA_5_0
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
2 parents d01dab8 + 156231d commit bd808c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/classes/DatabaseInterface.php
Expand Up @@ -1643,8 +1643,10 @@ public function initRelationParamsCache()
}
}
$cfgRelation = $this->relation->getRelationsParam();
if (empty($cfgRelation['db']) && $GLOBALS['dblist']->databases->exists('phpmyadmin')) {
$this->relation->fixPmaTables('phpmyadmin', false);
if (empty($cfgRelation['db']) && isset($GLOBALS['dblist'])) {
if ($GLOBALS['dblist']->databases->exists('phpmyadmin')) {
$this->relation->fixPmaTables('phpmyadmin', false);
}
}
}

Expand Down

0 comments on commit bd808c8

Please sign in to comment.