These config parameters are not required - this will completely break a new install...
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 May 2010 05:28:41 +0000 (23:28 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 May 2010 05:28:41 +0000 (23:28 -0600)
framework/Core/lib/Horde/Core/Binder/Mail.php

index 45447a6..a8d7ea5 100644 (file)
@@ -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'] &&