diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-05-29 04:10:56 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-05-29 04:10:56 +0300 |
commit | 7ed594a9d14faccc6d85dc0e7ddb3de7bb107a50 (patch) | |
tree | 5e10184a6cc0604b4cc47f9993ed6840fe7d6b96 /plugins/API | |
parent | 0e4959e8d3baecd8a12333f2e9617fa77667158a (diff) |
Fix sales funnel row evolution (#13001)
idGoal might be `0` or `-1`. See DEV-1349
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index dad8a602e2..b00ff6526f 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -454,7 +454,7 @@ class API extends \Piwik\Plugin\API $apiParameters = array(); $entityNames = StaticContainer::get('entities.idNames'); foreach ($entityNames as $entityName) { - if ($entityName === 'idGoal' && $idGoal) { + if ($entityName === 'idGoal' && is_numeric($idGoal)) { $apiParameters['idGoal'] = $idGoal; } elseif ($entityName === 'idDimension' && $idDimension) { $apiParameters['idDimension'] = $idDimension; |