|
@@ 223-227 (lines=5) @@
|
| 220 |
|
if (is_array($data->sheets[0]['cells'][$i])) { |
| 221 |
|
$column_data = $data->sheets[0]['cells'][$i]; |
| 222 |
|
// Fill all column with data to have a full array |
| 223 |
|
for ($x = 1; $x <= $data->sheets[0]['numCols']; $x++) { |
| 224 |
|
if (empty($column_data[$x])) { |
| 225 |
|
$data->sheets[0]['cells'][$i][$x] = ''; |
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
// Array filled with data |
| 229 |
|
$column_data = $data->sheets[0]['cells'][$i]; |
| 230 |
|
} else { |
|
@@ 285-289 (lines=5) @@
|
| 282 |
|
if (is_array($data->sheets[0]['cells'][$j])) { |
| 283 |
|
$column_data = $data->sheets[0]['cells'][$j]; |
| 284 |
|
// Fill all column with data |
| 285 |
|
for ($x = 1; $x <= $data->sheets[0]['numCols']; $x++) { |
| 286 |
|
if (empty($column_data[$x])) { |
| 287 |
|
$data->sheets[0]['cells'][$j][$x] = ''; |
| 288 |
|
} |
| 289 |
|
} |
| 290 |
|
$column_data = $data->sheets[0]['cells'][$j]; |
| 291 |
|
// Array filled of data |
| 292 |
|
if (is_array($column_data) && count($column_data) > 0) { |