fix: do not evaluate content in [for] statement if the function was not found

This commit is contained in:
Tomasz Sowa 2022-08-01 15:20:02 +02:00
parent 43fbf3b56c
commit 369cefacdf
1 changed files with 2 additions and 1 deletions

View File

@ -2485,7 +2485,8 @@ void Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::MakeTextF
}
else
{
Call(item.function, nullptr, stream_temp1, true, empty_stream);
if( !Call(item.function, nullptr, stream_temp1, true, empty_stream) )
return;
}
if( !last_res )