Fix coding standard issues

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-08-28 01:46:45 +02:00
parent c01e681c33
commit 576decd1f4
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2033,6 +2033,7 @@ class Relation
// This is the case when the DB could be created but no tables just after
// So just purge the cache and show the new configuration storage state
$_SESSION['relation'][$GLOBALS['server']] = $this->checkRelationsParam();
return true;
}
@ -2095,6 +2096,7 @@ class Relation
$createQueries = $this->getDefaultPmaTableNames();
if (! $this->dbi->selectDb($db, DatabaseInterface::CONNECT_CONTROL)) {
$GLOBALS['message'] = $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL);
return;
}
}
@ -2302,6 +2304,7 @@ class Relation
global $cfg;
$cfgStorageDbName = $cfg['Server']['pmadb'] ?? '';
// Use "phpmyadmin" as a default database name to check to keep the behavior consistent
return empty($cfgStorageDbName) ? 'phpmyadmin' : $cfgStorageDbName;
}