diff options
Diffstat (limited to 'core/Archive.php')
-rw-r--r-- | core/Archive.php | 6 |
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; } |