Fix var not initialized

This commit is contained in:
Laurent Destailleur 2021-08-08 18:22:09 +02:00
parent 671baa261d
commit 6b1fc48bd0

View File

@ -543,8 +543,9 @@ IMG;
*/
private function _parse($type = 'content')
{
// Search all tags fou into condition to complete $this->vars, so we will proceed all tests even if not defined
// Search all tags found into condition to complete $this->vars, so we will proceed all tests even if not defined
$reg='@\[!--\sIF\s([{}a-zA-Z0-9\.\,_]+)\s--\]@smU';
$matches = array();
preg_match_all($reg, $this->contentXml, $matches, PREG_SET_ORDER);
//var_dump($this->vars);exit;