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 'plugins/API/API.php')
-rw-r--r--plugins/API/API.php3
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;