From f38d5f2b976b7b538628ff51af15ca4d7f872b53 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 18 Nov 2009 14:24:03 +0100 Subject: [PATCH] MFB: Return early, if not authenticated. --- imp/config/hooks.php.dist | 4 ++++ 1 file changed, 4 insertions(+) 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'); -- 2.11.0