Skip to content

Commit

Permalink
[BUGFIX] Ensure ternary operator is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
bmack authored Apr 25, 2018
1 parent 4dfae63 commit 999af9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/SiteImportCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function fromFileCommand($file)
{
$contents = Yaml::parse(file_get_contents($file));
foreach ($contents as $type => $config) {
$mode = isset($config['mode']) ? $config['mode'] ? 'append';
$mode = isset($config['mode']) ? $config['mode'] : 'append';
if (version_compare(TYPO3_branch, '8.7', '>=')) {
$conn = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($config['table']);
if ($mode === 'replace') {
Expand Down

0 comments on commit 999af9c

Please sign in to comment.