We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
null
strictVars
When assigning null to a view variable it's not possible to access it from the view when strictVars is active.
This is because of the following isset() check which returns false for null values: https://github.com/Shardj/zf1-future/blob/master/library/Zend/View/Abstract.php#L277
isset()
false
I think the fix would be using array_key_exists() instead.
array_key_exists()
Line 300 might also be affected by this: https://github.com/Shardj/zf1-future/blob/master/library/Zend/View/Abstract.php#L300
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When assigning
null
to a view variable it's not possible to access it from the view whenstrictVars
is active.This is because of the following
isset()
check which returnsfalse
fornull
values:https://github.com/Shardj/zf1-future/blob/master/library/Zend/View/Abstract.php#L277
I think the fix would be using
array_key_exists()
instead.Line 300 might also be affected by this:
https://github.com/Shardj/zf1-future/blob/master/library/Zend/View/Abstract.php#L300
The text was updated successfully, but these errors were encountered: