Closed michalhlavka closed 2 years ago
Version: v2.4.9
Notice: Undefined property: stdClass::$ifcontent in /var/www...
Latte code
<div n:ifcontent n:if="false"></div>
Generated code
<?php ob_start(function () {}); if (false) { ?> <div><?php ob_start(); $this->global->ifcontent = ob_get_flush(); ?></div> <?php } if (rtrim($this->global->ifcontent) === "") ob_end_clean(); else echo ob_get_clean(); ?>
https://fiddle.nette.org/latte/#58bb87ac17
Fixed in 2.10-dev
Version: v2.4.9
Latte code
Generated code
https://fiddle.nette.org/latte/#58bb87ac17