Commit d6a068fe authored by Christian Münch's avatar Christian Münch

Update app/code/community/EcomDev/PHPUnit/Model/Layout.php

parent::_generateBlock can return "false" instead of "null". This causes a fatal error.
parent 15d232af
......@@ -321,7 +321,7 @@ class EcomDev_PHPUnit_Model_Layout
{
$this->_collectedBlock = null;
parent::_generateBlock($node, $parent);
if ($this->_collectedBlock !== null) {
if (!empty($this->_collectedBlock)) {
$target = $this->_collectedBlock->getNameInLayout();
$params = array();
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