diff options
Diffstat (limited to 'plugins/API/API.php')
-rw-r--r-- | plugins/API/API.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index fa913d887f..6f968a3efe 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -449,6 +449,10 @@ class API extends \Piwik\Plugin\API */ public function getRowEvolution($idSite, $period, $date, $apiModule, $apiAction, $label = false, $segment = false, $column = false, $language = false, $idGoal = false, $legendAppendMetric = true, $labelUseAbsoluteUrl = true, $idDimension = false) { + // check if site exists + $idSite = (int) $idSite; + $site = new Site($idSite); + Piwik::checkUserHasViewAccess($idSite); $apiParameters = array(); |