- Fixed a recursivity bug with the OR token inside another foreach/or instance
This commit is contained in:
1 parent
ce4ef6351a
commit
92e304daf3
2 files changed
+8
-6
No files matched your search
@@ -12,13 +12,11 @@ class OrToken implements ControlStructure {
|
||||
}
|
||||
|
||||
$key = count( $context->iterationStack ) - 1;
|
||||
|
||||
$context->iterationStack[$key]['or'] = true;
|
||||
|
||||
$name = $context->iterationStack[$key]['uid'];
|
||||
|
||||
#if ($key !== 0) {
|
||||
#}
|
||||
|
||||
return "<?php {$context->iterationStack[$key]['token']}; if( false === ($name ?? false) ): ?>";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user