diff --git a/Net/LDAP2/Entry.php b/Net/LDAP2/Entry.php index 5eb8574..ed3c6f5 100644 --- a/Net/LDAP2/Entry.php +++ b/Net/LDAP2/Entry.php @@ -877,7 +877,7 @@ public function update($deleteoldrdn = true, $ldap = null) } // COMMIT - if (false === @ldap_modify($link, $this->dn(), $modifications)) { + if ($modifications && false === @ldap_modify($link, $this->dn(), $modifications)) { return PEAR::raiseError("Could not modify the entry: " . @ldap_error($link), @ldap_errno($link)); }