projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30c6f6
)
Shout: a bit of error checking
author
Ben Klang
<ben@alkaloid.net>
Fri, 2 Apr 2010 16:48:55 +0000
(12:48 -0400)
committer
Ben Klang
<ben@alkaloid.net>
Fri, 2 Apr 2010 16:50:43 +0000
(12:50 -0400)
shout/lib/Driver/Ldap.php
patch
|
blob
|
history
diff --git
a/shout/lib/Driver/Ldap.php
b/shout/lib/Driver/Ldap.php
index
5d85ca4
..
2d5d821
100644
(file)
--- 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];