Shout: a bit of error checking
authorBen Klang <ben@alkaloid.net>
Fri, 2 Apr 2010 16:48:55 +0000 (12:48 -0400)
committerBen Klang <ben@alkaloid.net>
Fri, 2 Apr 2010 16:50:43 +0000 (12:50 -0400)
shout/lib/Driver/Ldap.php

index 5d85ca4..2d5d821 100644 (file)
@@ -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];