MFB: Return early, if not authenticated.
authorJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 13:24:03 +0000 (14:24 +0100)
committerJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 14:31:26 +0000 (15:31 +0100)
imp/config/hooks.php.dist

index 4e2c86c..9281e2e 100644 (file)
@@ -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');