Skip to content

Commit

Permalink
Merge pull request #1092 from helhum/fix-database-export
Browse files Browse the repository at this point in the history
[BUGFIX] Filter connections without driver config
  • Loading branch information
mbrodala committed Jan 30, 2023
2 parents c757555 + 749708d commit dde10c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getAvailableConnectionNames(string $type): array
array_filter(
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'],
function (array $connectionConfig) use ($type) {
return strpos($connectionConfig['driver'], $type) !== false;
return strpos($connectionConfig['driver'] ?? '', $type) !== false;
}
)
);
Expand Down

0 comments on commit dde10c1

Please sign in to comment.