From: Michael J. Rubinsky Date: Wed, 11 Nov 2009 21:18:07 +0000 (-0500) Subject: Need to implement __isset() if we are going to check magic __get() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e0acc3a9601fbafbb149178d48e090b4d6e5db7a;p=horde.git Need to implement __isset() if we are going to check magic __get() properties against empty()/isset() --- diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index 86a9c5d04..9d50aeba0 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -49,6 +49,15 @@ abstract class Ansel_View_Base //throw new Horde_Exception(sprintf("The property %s of Ansel_View not found.", $property)); } + public function __isset($property) + { + if (empty($this->_params[$property])) { + return false; + } + + return true; + } + /** * *