diff options
-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; } |