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/DataAccess/ArchiveSelector.php')
-rw-r--r--core/DataAccess/ArchiveSelector.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/DataAccess/ArchiveSelector.php b/core/DataAccess/ArchiveSelector.php
index cd7d0a044c..72fb0faeb3 100644
--- a/core/DataAccess/ArchiveSelector.php
+++ b/core/DataAccess/ArchiveSelector.php
@@ -146,9 +146,14 @@ class ArchiveSelector
* '2010-01-01' => array(1,2,3)
* )
* )
+ * @throws
*/
static public function getArchiveIds($siteIds, $periods, $segment, $plugins, $isSkipAggregationOfSubTables = false)
{
+ if(empty($siteIds)) {
+ throw new \Exception("Website IDs could not be read from the request, ie. idSite=");
+ }
+
$getArchiveIdsSql = "SELECT idsite, name, date1, date2, MAX(idarchive) as idarchive
FROM %s
WHERE %s