Simplify; also fix logic for how isset() usually works vs. empty()
authorChuck Hagenbuch <chuck@horde.org>
Sun, 22 Aug 2010 02:38:13 +0000 (22:38 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 22 Aug 2010 02:38:13 +0000 (22:38 -0400)
ansel/lib/View/Base.php

index d749bae..ffd88cb 100644 (file)
@@ -113,11 +113,7 @@ abstract class Ansel_View_Base
 
     public function __isset($property)
     {
-        if (empty($this->_params[$property])) {
-            return false;
-        }
-
-        return true;
+        return isset($this->_params[$property]);
     }
 
     /**