MrAnchovy / Kohana_Smarty3

Integration of Smarty v3 with the Kohana PHP Framework
25 stars 13 forks source link

Issues in magic methods __isset and __get #24

Open mleko64 opened 8 years ago

mleko64 commented 8 years ago

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 ) {

2) In magic method __isset() should be:

return $this->_smarty->getVariable($key)->value!==NULL;

instead of

return $this->_smarty->getVariable($key)->value===NULL;