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

Ref #16906 - Return an error message if the pma storage db could not be selected

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2021-08-27 22:32:56 +02:00
parent 7290be3de2
commit 2ea46aa113

View File

@@ -2088,7 +2088,10 @@ class Relation
if ($create) {
if ($createQueries == null) { // first create
$createQueries = $this->getDefaultPmaTableNames();
$this->dbi->selectDb($db);
if (! $this->dbi->selectDb($db)) {
$GLOBALS['message'] = $this->dbi->getError();
return;
}
}
$this->dbi->tryQuery($createQueries[$table]);