LSldapObject :: __get() : Fixed notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 25 Nov 2010 11:25:44 +0000 (12:25 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 25 Nov 2010 11:25:44 +0000 (12:25 +0100)
public_html/includes/class/class.LSldapObject.php

index 1d223fd..c9b15f6 100644 (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);