From 7dfc55324ea1ba822c8ae69c591f21442bdb237c Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sat, 9 Jan 2010 00:15:41 -0500 Subject: [PATCH] Shout: WS tweak: remove trailing spaces --- shout/ajax.php | 2 +- shout/lib/Driver/Ldap.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shout/ajax.php b/shout/ajax.php index c38a29a77..560d0bc8d 100644 --- a/shout/ajax.php +++ b/shout/ajax.php @@ -60,7 +60,7 @@ case 'addDestination': Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); //FIXME: Create a way to notify the user of the failure. } - + break; case 'deleteDestination': diff --git a/shout/lib/Driver/Ldap.php b/shout/lib/Driver/Ldap.php index 76323aa51..d0d3270aa 100644 --- a/shout/lib/Driver/Ldap.php +++ b/shout/lib/Driver/Ldap.php @@ -229,7 +229,7 @@ class Shout_Driver_Ldap extends Shout_Driver { $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"', @@ -381,14 +381,14 @@ class Shout_Driver_Ldap extends Shout_Driver 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 $context - * @param $extension + * @param $extension */ protected function _getExtensionDn($context, $extension) { -- 2.11.0