Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volt: if generates a notice when the body is empty #1998

Closed
kolypto opened this issue Feb 9, 2014 · 0 comments
Closed

Volt: if generates a notice when the body is empty #1998

kolypto opened this issue Feb 9, 2014 · 0 comments

Comments

@kolypto
Copy link

kolypto commented Feb 9, 2014

{% if true %}{% endif %}

Generates:

Notice: Undefined index: true_statements in index.php on line 22

Line 22 contains:

echo $application->handle()->getContent();

If I put anything into the body of the if block, the error is gone.

Bugged line: ext/mvc/view/engine/volt/parser.lemon:87

(Version: 1.2.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants