fix possible problem with endless loop in export

This commit is contained in:
Roland Gruber 2010-09-11 11:42:52 +00:00
parent 43cbfb0ff3
commit d4cdc96217
1 changed files with 2 additions and 1 deletions

View File

@ -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 ){