diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-22 17:34:10 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-22 17:37:03 +0300 |
commit | e2b4dda2e9adff1840ab9b1b735c17afdca91c93 (patch) | |
tree | ed97b45a7d5d9d4dbb05a5a58e6f03adf28317af /libraries | |
parent | d8515f83bab7ee6880721eb936b8eaf3da715a76 (diff) |
Fix syntax error for PHP 5
Fixes #17305
Fixes #17306
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/classes/DatabaseInterface.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/classes/DatabaseInterface.php b/libraries/classes/DatabaseInterface.php index 7ab5d754fb..0edc297cd3 100644 --- a/libraries/classes/DatabaseInterface.php +++ b/libraries/classes/DatabaseInterface.php @@ -1563,7 +1563,7 @@ class DatabaseInterface */ public function initRelationParamsCache() { - $storageDbName = $GLOBALS['cfg']['Server']['pmadb'] ?? ''; + $storageDbName = isset($GLOBALS['cfg']['Server']['pmadb']) ? $GLOBALS['cfg']['Server']['pmadb'] : ''; // Use "phpmyadmin" as a default database name to check to keep the behavior consistent $storageDbName = $storageDbName !== null && is_string($storageDbName) @@ -1574,7 +1574,7 @@ class DatabaseInterface $this->relation->fixPmaTables($storageDbName, false); // This global will be changed if fixPmaTables did find one valid table - $storageDbName = $GLOBALS['cfg']['Server']['pmadb'] ?? ''; + $storageDbName = isset($GLOBALS['cfg']['Server']['pmadb']) ? $GLOBALS['cfg']['Server']['pmadb'] : ''; // Empty means that until now no pmadb was found eligible if (empty($storageDbName)) { |