LSldapObject -> loadData() : Fixed Notice PHP

This commit is contained in:
Benjamin Renard 2010-11-08 17:04:14 +01:00
parent 62696c9f16
commit fd566cd588

View 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();