LSldap :: update() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:49:35 +01:00
parent cec517b46d
commit b03b69eec9

View file

@ -293,9 +293,14 @@ class LSldap {
$dropAttr[] = $attrName;
}
}
$entry -> replace($changeData);
LSdebug('change : <pre>'.print_r($changeData,true).'</pre>');
LSdebug('drop : <pre>'.print_r($dropAttr,true).'</pre>');
if (isset($changeData)) {
$entry -> replace($changeData);
LSdebug('change : <pre>'.print_r($changeData,true).'</pre>');
LSdebug('drop : <pre>'.print_r($dropAttr,true).'</pre>');
}
else {
LSdebug('No change');
}
if ($new) {
LSdebug('LSldap :: add()');