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:
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Archive.php b/core/Archive.php
index 3a598eae88..72e281eed8 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -547,8 +547,12 @@ class Archive implements ArchiveQuery
$dataNames, $archiveDataType, $this->params->getIdSites(), $this->params->getPeriods(), $defaultRow = null);
$archiveIds = $this->getArchiveIds($archiveNames);
-
if (empty($archiveIds)) {
+ /**
+ * Triggered when no archive data is found in an API request.
+ * @ignore
+ */
+ Piwik::postEvent('Archive.noArchivedData');
return $result;
}