Skip to content

Commit

Permalink
Issue #4 - Исправлена ошибка работы с DOMNodeList
Browse files Browse the repository at this point in the history
  • Loading branch information
notdest committed Sep 2, 2018
1 parent 3e079b1 commit cfd91ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ymlDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function delivery($cost,$days,$before = -1)
$dlv = $this->createElement( 'delivery-options');
$this->shop->appendChild($dlv);
}else{
$dlv = $dlvs[0];
$dlv = $dlvs->item(0);
$opts = $dlv->getElementsByTagName('option');
if($opts->length >= 5) $this->exc("максимум 5 опций доставки");
}
Expand Down
2 changes: 1 addition & 1 deletion ymlOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function dlvOption($cost,$days,$before = -1)
$dlv = new DomElement('delivery-options');
$this->appendChild($dlv);
}else{
$dlv = $dlvs[0];
$dlv = $dlvs->item(0);
$opts = $dlv->getElementsByTagName('option');
$this->check( $opts->length >= 5 , "максимум 5 опций доставки" );
}
Expand Down

0 comments on commit cfd91ce

Please sign in to comment.