Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR);
//FIXME: Create a way to notify the user of the failure.
}
-
+
break;
case 'deleteDestination':
{
$dn = $this->_getExtensionDn($context, $extension);
$attr = $this->_getDestAttr($type, $destination);
-
+
$res = ldap_mod_del($this->_LDAP, $dn, $attr);
if ($res === false) {
$msg = sprintf('Error while modifying the LDAP entry. Code %s; Message "%s"',
Horde::logMessage($msg, __FILE__, __LINE__, PEAR_LOG_ERR);
throw new Horde_Exception(_("Error while deleting from the directory. Details have been logged for the administrator."));
}
-
+
return true;
}
/**
*
* @param <type> $context
- * @param <type> $extension
+ * @param <type> $extension
*/
protected function _getExtensionDn($context, $extension)
{