LSldapObject :: __get() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-25 12:25:44 +01:00
parent 813b2222f7
commit 84c785e9f4

View file

@ -1948,7 +1948,7 @@ class LSldapObject {
**/
function __get($key) {
if ($key=='subDnValue') {
if ($this -> cache['subDnValue']) {
if (isset($this -> cache['subDnValue'])) {
return $this -> cache['subDnValue'];
}
$this -> cache['subDnValue'] = self :: getSubDnValue($this -> dn);