projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d32702d
)
Need to implement __isset() if we are going to check magic __get()
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 11 Nov 2009 21:18:07 +0000
(16:18 -0500)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/ansel/lib/View/Base.php
b/ansel/lib/View/Base.php
index
86a9c5d
..
9d50aeb
100644
(file)
--- 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;
+ }
+
/**
*
*