diff --git a/lam/lib/export.inc b/lam/lib/export.inc index efbcf212..83a5145d 100755 --- a/lam/lib/export.inc +++ b/lam/lib/export.inc @@ -343,7 +343,8 @@ class PlaLdapExporter extends PlaAbstractExporter{ //get the attributes of the entry $attrs = @ldap_get_attributes($this->ds,$this->entry_id); - if( $attr = @ldap_first_attribute( $this->ds,$this->entry_id ) ){ + $attr = @ldap_first_attribute( $this->ds,$this->entry_id ); + if(($attr !== false) && ($attr !== null)) { //iterate over the attributes while( $attr ){