diff options
author | Peter Zhang <peter@innocraft.com> | 2022-01-07 05:54:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 05:54:36 +0300 |
commit | db25a2e628a294bb5ef63504a8fc0a8ace29c07a (patch) | |
tree | c451b71f3c2af2fcfe3d9797e28179345eafa533 | |
parent | 2d654da88d89da6e64f7573d9cb45d46800c7fc8 (diff) |
update display no data condition (#18540)
update display no data condition
-rw-r--r-- | plugins/SegmentEditor/SegmentEditor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php index 792b8e106d..96128253a1 100644 --- a/plugins/SegmentEditor/SegmentEditor.php +++ b/plugins/SegmentEditor/SegmentEditor.php @@ -252,7 +252,7 @@ class SegmentEditor extends \Piwik\Plugin // check if segment archive does not exist $processorParams = new \Piwik\ArchiveProcessor\Parameters(new Site($idSite), $period, $segment); $archiveIdAndStats = ArchiveSelector::getArchiveIdAndVisits($processorParams, null); - if (!empty($archiveIdAndStats[0])) { + if (!empty($archiveIdAndStats[0]) || !empty($archiveIdAndStats[1])) { return null; } |