diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-11 06:02:38 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-15 02:39:40 +0300 |
commit | 936d3b89074c5efc227e6ec11c1988502d7ac99f (patch) | |
tree | 83924bc410b68427a0cff1cccc0921aa82cc5e80 /plugins/API | |
parent | 5d75341e2c37dfbf93e2fea7c5e0bf0c74e038e2 (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.php | 6 |
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')); |