From 55871f7e54348947a0f46a4f694ea1bba7a2b2e6 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 10 May 2010 23:28:41 -0600 Subject: [PATCH] These config parameters are not required - this will completely break a new install otherwise --- framework/Core/lib/Horde/Core/Binder/Mail.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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'] && -- 2.11.0