Skip to content

Commit

Permalink
Added check for use_ci_email before loading email config. This resolv…
Browse files Browse the repository at this point in the history
…es issue #352.
  • Loading branch information
benedmunds committed Nov 6, 2012
1 parent 1f5d142 commit 7c68d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Ion_auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct()

$email_config = $this->config->item('email_config', 'ion_auth');

if (isset($email_config) && is_array($email_config))
if ($this->config->item('use_ci_email', 'ion_auth') && isset($email_config) && is_array($email_config))
{
$this->email->initialize($email_config);
}
Expand Down

0 comments on commit 7c68d4c

Please sign in to comment.