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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-04-06 23:43:32 +0300
committerGitHub <noreply@github.com>2020-04-06 23:43:32 +0300
commit7af49eeac6dde210a2fcfe1da760c0244881a6cb (patch)
treed3c519f8525176a0017bfe34f570669675667033
parentbc6ec46620be2805792da6fdfe5f541f9134ca7f (diff)
Avoid possible error subtable already exists but not loaded (#15779)
-rw-r--r--core/Archive/DataTableFactory.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Archive/DataTableFactory.php b/core/Archive/DataTableFactory.php
index fdc69a5f54..dfa04da14c 100644
--- a/core/Archive/DataTableFactory.php
+++ b/core/Archive/DataTableFactory.php
@@ -404,13 +404,17 @@ class DataTableFactory
foreach ($dataTable->getRowsWithoutSummaryRow() as $row) {
$row->removeSubtable();
}
+ $summaryRow = $dataTable->getRowFromId(DataTable::ID_SUMMARY_ROW);
+ if ($summaryRow) {
+ $summaryRow->removeSubtable();
+ }
return;
}
$dataName = reset($this->dataNames);
- foreach ($dataTable->getRowsWithoutSummaryRow() as $row) {
+ foreach ($dataTable->getRows() as $row) {
$sid = $row->getIdSubDataTable();
if ($sid === null) {
continue;