Commit cfe7c7f5 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #45 from cmuench/master

Fixed fatal error if "false" as block was given.
parents 15d232af 03b9c8b5
...@@ -321,7 +321,7 @@ class EcomDev_PHPUnit_Model_Layout ...@@ -321,7 +321,7 @@ class EcomDev_PHPUnit_Model_Layout
{ {
$this->_collectedBlock = null; $this->_collectedBlock = null;
parent::_generateBlock($node, $parent); parent::_generateBlock($node, $parent);
if ($this->_collectedBlock !== null) { if ($this->_collectedBlock) {
$target = $this->_collectedBlock->getNameInLayout(); $target = $this->_collectedBlock->getNameInLayout();
$params = array(); $params = array();
if (isset($node['as'])) { if (isset($node['as'])) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment