LSldapObject -> loadData() : Fixed Notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Mon, 8 Nov 2010 16:04:14 +0000 (17:04 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Mon, 8 Nov 2010 16:04:14 +0000 (17:04 +0100)
public_html/includes/class/class.LSldapObject.php

index b74342f..1823081 100644 (file)
@@ -95,7 +95,7 @@ class LSldapObject {
     $data = LSldap :: getAttrs($dn);
     if(!empty($data)) {
       foreach($this -> attrs as $attr_name => $attr) {
-        if(!$this -> attrs[$attr_name] -> loadData($data[$attr_name]))
+        if( !$this -> attrs[$attr_name] -> loadData( (isset($data[$attr_name])?$data[$attr_name]:NULL) ) )
           return;
       }
       $this->cache=array();