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:
authordiosmosis <benaka@piwik.pro>2015-09-11 06:02:38 +0300
committerdiosmosis <benaka@piwik.pro>2015-09-15 02:39:40 +0300
commit936d3b89074c5efc227e6ec11c1988502d7ac99f (patch)
tree83924bc410b68427a0cff1cccc0921aa82cc5e80 /plugins/API
parent5d75341e2c37dfbf93e2fea7c5e0bf0c74e038e2 (diff)
Do not display suggestedValuesCallback in API output if it is not a string.
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/API.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php
index 72411c21be..ff6690fdf2 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -190,6 +190,12 @@ class API extends \Piwik\Plugin\API
unset($segment['sqlFilterValue']);
unset($segment['sqlSegment']);
}
+
+ if (isset($segment['suggestedValuesCallback'])
+ && !is_string($segment['suggestedValuesCallback'])
+ ) {
+ unset($segment['suggestedValuesCallback']);
+ }
}
usort($segments, array($this, 'sortSegments'));