Skip to content
Extraits de code Groupes Projets
Valider df8fc0f4 rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixing a classic bug. let's see if any test fails the build.

parent d836040d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1308,8 +1308,9 @@ class DataTable implements DataTableInterface ...@@ -1308,8 +1308,9 @@ class DataTable implements DataTableInterface
public static function makeFromIndexedArray($array, $subtablePerLabel = null) public static function makeFromIndexedArray($array, $subtablePerLabel = null)
{ {
$table = new DataTable(); $table = new DataTable();
$cleanRow = array();
foreach ($array as $label => $row) { foreach ($array as $label => $row) {
$cleanRow = array();
// Support the case of an $array of single values // Support the case of an $array of single values
if (!is_array($row)) { if (!is_array($row)) {
$row = array('value' => $row); $row = array('value' => $row);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter