From e0acc3a9601fbafbb149178d48e090b4d6e5db7a Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 11 Nov 2009 16:18:07 -0500 Subject: [PATCH] Need to implement __isset() if we are going to check magic __get() properties against empty()/isset() --- ansel/lib/View/Base.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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; + } + /** * * -- 2.11.0