Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
Fixed break condition for ValuesDatabasePreserver::preserveData() to …
Browse files Browse the repository at this point in the history
…work in complex APIs like CharacterSheet.
  • Loading branch information
Dragonrun1 committed Jun 23, 2014
1 parent 2cd09c4 commit 6b7fec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Database/ValuesDatabasePreserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ public function preserveData(
$simple = new SimpleXMLIterator($xml);
$row = array();
$columns = $simple->xpath($xPath);
$columnList = $this->getColumnNameList();
/**
* @var SimpleXMLIterator $column
*/
foreach ($columns as $column) {
if ($column->hasChildren()) {
if (!in_array($column->getName(), $columnList)) {
break;
}
$this->getLogger()
Expand Down

0 comments on commit 6b7fec8

Please sign in to comment.