diff options
author | Lukas Winkler <git@lw1.at> | 2021-06-18 21:08:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 21:08:26 +0300 |
commit | 3e4aaf404768bb800d8e9e6f2f750458203fcd47 (patch) | |
tree | a6fbdf4e7edcb100a433fa63c2ea300d7f9c0673 /plugins/CoreConsole | |
parent | 482cf02b00876f799516036cef52c061136a0954 (diff) |
allow empty site list (#17693)
* allow empty site list
* no null in $segmentIds
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r-- | plugins/CoreConsole/Commands/CoreArchiver.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/CoreConsole/Commands/CoreArchiver.php b/plugins/CoreConsole/Commands/CoreArchiver.php index ad16b543e4..9f4f3cd877 100644 --- a/plugins/CoreConsole/Commands/CoreArchiver.php +++ b/plugins/CoreConsole/Commands/CoreArchiver.php @@ -56,8 +56,12 @@ class CoreArchiver extends ConsoleCommand $archiveFilter->setForceReport($input->getOption('force-report')); $segmentIds = $input->getOption('force-idsegments'); - $segmentIds = explode(',', $segmentIds); - $segmentIds = array_map('trim', $segmentIds); + if (!empty($segmentIds)) { + $segmentIds = explode(',', $segmentIds); + $segmentIds = array_map('trim', $segmentIds); + } else { + $segmentIds = []; + } $archiveFilter->setSegmentsToForceFromSegmentIds($segmentIds); $archiver->setArchiveFilter($archiveFilter); |