You've already forked phpmyadmin
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:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user