Skip to content

Commit

Permalink
Fixed smtp send mail.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmello committed Nov 27, 2014
1 parent 8a42540 commit 8563cb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upload/system/library/mail.php
Expand Up @@ -20,7 +20,9 @@ class Mail {

public function __construct($config = array()) {
foreach ($config as $key => $value) {
$this->$key = $value;
if ($value) {
$this->$key = $value;
}
}
}

Expand Down

1 comment on commit 8563cb0

@brettwhiteman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough

Please sign in to comment.