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>2014-04-09 08:23:51 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-09 08:23:51 +0400
commitdf8fc0f43d44325792561872eca9a800a7762dfe (patch)
treeed9883a2d478ee2af04483bf11a8bd37754ce4ad /core/DataTable.php
parentd836040d6dfce9562d1866559666ccc97988e255 (diff)
Fixing a classic bug. let's see if any test fails the build.
Diffstat (limited to 'core/DataTable.php')
-rw-r--r--core/DataTable.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/DataTable.php b/core/DataTable.php
index 5102f195e3..b70ef4bde7 100644
--- a/core/DataTable.php
+++ b/core/DataTable.php
@@ -1308,8 +1308,9 @@ class DataTable implements DataTableInterface
public static function makeFromIndexedArray($array, $subtablePerLabel = null)
{
$table = new DataTable();
- $cleanRow = array();
foreach ($array as $label => $row) {
+ $cleanRow = array();
+
// Support the case of an $array of single values
if (!is_array($row)) {
$row = array('value' => $row);