From: Jan Schneider Date: Wed, 18 Nov 2009 13:24:03 +0000 (+0100) Subject: MFB: Return early, if not authenticated. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f38d5f2b976b7b538628ff51af15ca4d7f872b53;p=horde.git MFB: Return early, if not authenticated. --- diff --git a/imp/config/hooks.php.dist b/imp/config/hooks.php.dist index 4e2c86c33..9281e2e42 100644 --- a/imp/config/hooks.php.dist +++ b/imp/config/hooks.php.dist @@ -76,6 +76,10 @@ class IMP_Hooks */ // function prefs_hook_add_source($username = null) // { +// if (!$username) { +// return; +// } +// // // Example #1: Useful hook when using a Turba source with shares // // enabled (i.e. the example localsql configuration). // return $GLOBALS['registry']->call('contacts/getDefaultShare');