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; $dropAttr[] = $attrName;
} }
} }
$entry -> replace($changeData); if (isset($changeData)) {
LSdebug('change : <pre>'.print_r($changeData,true).'</pre>'); $entry -> replace($changeData);
LSdebug('drop : <pre>'.print_r($dropAttr,true).'</pre>'); LSdebug('change : <pre>'.print_r($changeData,true).'</pre>');
LSdebug('drop : <pre>'.print_r($dropAttr,true).'</pre>');
}
else {
LSdebug('No change');
}
if ($new) { if ($new) {
LSdebug('LSldap :: add()'); LSdebug('LSldap :: add()');