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

Issues in magic methods __isset and __get #24

Open
mleko64 opened this issue Mar 16, 2016 · 0 comments
Open

Issues in magic methods __isset and __get #24

mleko64 opened this issue Mar 16, 2016 · 0 comments

Comments

@mleko64
Copy link

mleko64 commented Mar 16, 2016

Hello!
I found issues in classes\Smarty\View.php file:

  1. In magic method __get() should be:
if ( $var instanceof Smarty_Undefined_Variable ) {

instead of

if ( $var instanceof Undefined_Smarty_Variable ) {
  1. In magic method __isset() should be:
return $this->_smarty->getVariable($key)->value!==NULL;

instead of

return $this->_smarty->getVariable($key)->value===NULL;
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

1 participant