diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-09 08:23:51 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-09 08:23:51 +0400 |
commit | df8fc0f43d44325792561872eca9a800a7762dfe (patch) | |
tree | ed9883a2d478ee2af04483bf11a8bd37754ce4ad /core/DataTable.php | |
parent | d836040d6dfce9562d1866559666ccc97988e255 (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.php | 3 |
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); |