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:
authormattab <matthieu.aubry@gmail.com>2013-11-18 05:05:49 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-18 05:05:49 +0400
commit884e22d596b4b5be15fc6e33bb2403f021bfeb58 (patch)
tree9ad43b6828765571366f27a8e65114db643fa311 /plugins/DBStats/MySQLMetadataProvider.php
parentba372fe35080bc758c43a0ffdf83cb5d5dec16ce (diff)
Refactor const to highlight their coupling #4278
Diffstat (limited to 'plugins/DBStats/MySQLMetadataProvider.php')
-rwxr-xr-xplugins/DBStats/MySQLMetadataProvider.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/DBStats/MySQLMetadataProvider.php b/plugins/DBStats/MySQLMetadataProvider.php
index fe7d722fd4..a7d2bd95bc 100755
--- a/plugins/DBStats/MySQLMetadataProvider.php
+++ b/plugins/DBStats/MySQLMetadataProvider.php
@@ -230,8 +230,7 @@ class MySQLMetadataProvider
// if option exists && !$forceCache, use the cached data, otherwise create the
$cachedData = Option::get($dataTableOptionName);
if ($cachedData !== false && !$forceCache) {
- $table = new DataTable();
- $table->addRowsFromSerializedArray($cachedData);
+ $table = DataTable::fromSerializedArray($cachedData);
} else {
// otherwise, create data table & cache it
$sql = "SELECT name as 'label', COUNT(*) as 'row_count'$extraCols FROM {$status['Name']} GROUP BY name";