From f904da0c64f3d1e0f37342a0fb9796fa2bef48be Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 21 Aug 2010 22:38:13 -0400 Subject: [PATCH] Simplify; also fix logic for how isset() usually works vs. empty() --- ansel/lib/View/Base.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index d749bae31..ffd88cb9b 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -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]); } /** -- 2.11.0