Need to implement __isset() if we are going to check magic __get()
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 21:18:07 +0000 (16:18 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 21:18:07 +0000 (16:18 -0500)
properties against empty()/isset()

ansel/lib/View/Base.php

index 86a9c5d..9d50aeb 100644 (file)
@@ -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;
+    }
+
     /**
      *
      *