From 36e371fdee96c64b10586ed85df1d14e432a0017 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 2 Apr 2010 12:48:55 -0400 Subject: [PATCH] Shout: a bit of error checking --- shout/lib/Driver/Ldap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.11.0