Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Changed function to directly unset the var instead of calling setVari…
Browse files Browse the repository at this point in the history
…ables again
  • Loading branch information
pdobrigkeit committed Aug 10, 2012
1 parent 1f77d8d commit 45a2f27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions library/Zend/View/Model/ViewModel.php
Expand Up @@ -145,10 +145,7 @@ public function __unset($name)
return null;
}

$variables = $this->getVariables();
unset($variables[$name]);

$this->setVariables($variables, true);
unset($this->variables[$name]);
}

/**
Expand Down

0 comments on commit 45a2f27

Please sign in to comment.