Revert "Etemplate - avoid error if child is not a widget", it causes other random breaking

This reverts commit 1f63996a2c.
This commit is contained in:
nathangray 2019-08-02 11:08:14 -06:00
parent 1f63996a2c
commit 1131d07199

View File

@ -92,11 +92,8 @@ class Box extends Etemplate\Widget
{
break;
}
if($child && $child instanceof Widget)
{
//error_log('Running ' . $method_name . ' on child ' . $n . '(' . $child . ') ['.$expand['row'] . ','.$expand['c'] . ']');
$disabled = $child->run($method_name, $params, $respect_disabled, $columns_disabled) === false;
}
//error_log('Running ' . $method_name . ' on child ' . $n . '(' . $child . ') ['.$expand['row'] . ','.$expand['c'] . ']');
$disabled = $child->run($method_name, $params, $respect_disabled, $columns_disabled) === false;
}
$params[0] = $old_cname;