Skip to content

Instantly share code, notes, and snippets.

@steamraven
Created June 3, 2011 21:01
Show Gist options
  • Save steamraven/1007165 to your computer and use it in GitHub Desktop.
Save steamraven/1007165 to your computer and use it in GitHub Desktop.
FileZ: Multiple email bug
diff --git a/lib/Fz/Controller.php b/lib/Fz/Controller.php
index 014266c..87804d9 100644
--- a/lib/Fz/Controller.php
+++ b/lib/Fz/Controller.php
@@ -118,8 +118,8 @@ class Fz_Controller {
* @return Zend_Mail
*/
protected function createMail () {
+ $config = fz_config_get ('email');
if (self::$_mailTransportSet === false) {
- $config = fz_config_get ('email');
$config ['name'] = 'filez';
$transport = new Zend_Mail_Transport_Smtp ($config ['host'], $config);
Zend_Mail::setDefaultTransport ($transport);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment