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/DBStats/API.php')
-rw-r--r--plugins/DBStats/API.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/DBStats/API.php b/plugins/DBStats/API.php
index fec0e0fe71..693c7f2e1e 100644
--- a/plugins/DBStats/API.php
+++ b/plugins/DBStats/API.php
@@ -128,9 +128,7 @@ class Piwik_DBStats_API
$rowToAddTo['row_count'] += $status['Rows'];
}
- $result = new Piwik_DataTable();
- $result->addRowsFromArrayWithIndexLabel($rows);
- return $result;
+ return Piwik_DataTable::makeFromIndexedArray($rows);
}
/**