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:
Diffstat (limited to 'plugins/API/API.php')
-rw-r--r--plugins/API/API.php1
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) {