Skip to content

Commit

Permalink
Update Sections.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodim99 committed Aug 31, 2023
1 parent 96e03f8 commit c1f96d1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cms/include/classes/Cetera/Backup/Sections.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ public function restore(\XMLReader $xml, $parentSection = null) {
$parentSection = array_pop($stack);
}
if (in_array($xml->nodeType, array(\XMLReader::TEXT, \XMLReader::CDATA))) {
$fields[$field] .= $xml->value;
if (!isset($fields[$field])) {
$fields[$field] = $xml->value;
}
else {
$fields[$field] .= $xml->value;
}
}
}
}
Expand Down Expand Up @@ -224,4 +229,4 @@ private function backupSection($section) {
$this->xml->endElement();
}

}
}

0 comments on commit c1f96d1

Please sign in to comment.