From: Michael M Slusarz Date: Tue, 11 May 2010 05:28:41 +0000 (-0600) Subject: These config parameters are not required - this will completely break a new install... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=55871f7e54348947a0f46a4f694ea1bba7a2b2e6;p=horde.git These config parameters are not required - this will completely break a new install otherwise --- diff --git a/framework/Core/lib/Horde/Core/Binder/Mail.php b/framework/Core/lib/Horde/Core/Binder/Mail.php index 45447a6a9..a8d7ea585 100644 --- a/framework/Core/lib/Horde/Core/Binder/Mail.php +++ b/framework/Core/lib/Horde/Core/Binder/Mail.php @@ -7,8 +7,12 @@ class Horde_Core_Binder_Mail implements Horde_Injector_Binder { public function create(Horde_Injector $injector) { - $driver = $GLOBALS['conf']['mailer']['type']; - $params = $GLOBALS['conf']['mailer']['params']; + $driver = isset($GLOBALS['conf']['mailer']['type']) + ? $GLOBALS['conf']['mailer']['type'] + : 'null'; + $params = isset($GLOBALS['conf']['mailer']['params']) + ? $GLOBALS['conf']['mailer']['params'] + : array(); if (($driver == 'smtp') && $params['auth'] &&