From: Ben Klang Date: Fri, 2 Apr 2010 16:48:55 +0000 (-0400) Subject: Shout: a bit of error checking X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=36e371fdee96c64b10586ed85df1d14e432a0017;p=horde.git Shout: a bit of error checking --- diff --git a/shout/lib/Driver/Ldap.php b/shout/lib/Driver/Ldap.php index 5d85ca41b..2d5d821d9 100644 --- a/shout/lib/Driver/Ldap.php +++ b/shout/lib/Driver/Ldap.php @@ -51,7 +51,9 @@ class Shout_Driver_Ldap extends Shout_Driver */ public function getExtensions($account) { - + if (empty($account)) { + throw new Shout_Exception('Must specify an account code'); + } static $entries = array(); if (isset($entries[$account])) { return $entries[$account];