diff options
Diffstat (limited to 'plugins/API/API.php')
-rw-r--r-- | plugins/API/API.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index f889329417..f897145a1e 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -553,6 +553,7 @@ class API extends \Piwik\Plugin\API 'flat' => (int) $flat, 'filter_limit' => $maxSuggestionsToReturn )); + if ($table && $table instanceof DataTable && $table->getRowsCount()) { $values = []; foreach ($table->getRowsWithoutSummaryRow() as $row) { |