From d4cdc96217ccf205c07ddc770c778d4d059bf929 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 11 Sep 2010 11:42:52 +0000 Subject: [PATCH] fix possible problem with endless loop in export --- lam/lib/export.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ){