Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhang <peter@innocraft.com>2022-01-07 05:54:36 +0300
committerGitHub <noreply@github.com>2022-01-07 05:54:36 +0300
commitdb25a2e628a294bb5ef63504a8fc0a8ace29c07a (patch)
treec451b71f3c2af2fcfe3d9797e28179345eafa533
parent2d654da88d89da6e64f7573d9cb45d46800c7fc8 (diff)
update display no data condition (#18540)
update display no data condition
-rw-r--r--plugins/SegmentEditor/SegmentEditor.php2
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;
}