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-12-10 08:39:09 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-10 08:39:09 +0300
commit8b094d74f9a12d6fd575af42a8690aeddacc0432 (patch)
treed44f4cdc2e3d8cfdafe024f2afe29fbcbeca41d0 /core/DataTable.php
parent76e5d927c0d6ba31bfbacb843db3d1c78bea5d24 (diff)
Remove code that we're not sure why it's here
Diffstat (limited to 'core/DataTable.php')
-rw-r--r--core/DataTable.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/DataTable.php b/core/DataTable.php
index 53686f2feb..c7435b2b3c 100644
--- a/core/DataTable.php
+++ b/core/DataTable.php
@@ -1114,10 +1114,7 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess
$aSerializedDataTable = array();
foreach ($this->rows as $row) {
$subTable = $row->getSubtable();
- if (!$subTable) {
- // Not sure if this code is needed
- $row->removeSubtable();
- } else {
+ if ($subTable) {
$depth++;
$aSerializedDataTable = $aSerializedDataTable + $subTable->getSerialized($maximumRowsInSubDataTable, $maximumRowsInSubDataTable, $columnToSortByBeforeTruncation);
$depth--;