diff options
Diffstat (limited to 'plugins/API/API.php')
-rw-r--r-- | plugins/API/API.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index c0da00ced5..bb2d4af630 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -570,6 +570,9 @@ class API extends \Piwik\Plugin\API */ public function getSuggestedValuesForSegment($segmentName, $idSite) { + if(empty(Config::getInstance()->General['enable_segment_suggested_values'])) { + return array(); + } Piwik::checkUserHasViewAccess($idSite); $maxSuggestionsToReturn = 30; |