From bcdc92a68ee22daab7193fe13e8880b9f263ca84 Mon Sep 17 00:00:00 2001 From: diosmosis <benaka@piwik.pro> Date: Thu, 10 Sep 2015 20:20:52 -0700 Subject: [PATCH] Fix regression in last commit. --- plugins/API/API.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/API/API.php b/plugins/API/API.php index ff6690fdf2..fb1e5ae669 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -189,12 +189,12 @@ class API extends \Piwik\Plugin\API unset($segment['sqlFilter']); unset($segment['sqlFilterValue']); unset($segment['sqlSegment']); - } - if (isset($segment['suggestedValuesCallback']) - && !is_string($segment['suggestedValuesCallback']) - ) { - unset($segment['suggestedValuesCallback']); + if (isset($segment['suggestedValuesCallback']) + && !is_string($segment['suggestedValuesCallback']) + ) { + unset($segment['suggestedValuesCallback']); + } } } -- GitLab