Skip to content

Commit

Permalink
fixed email_config error (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Jul 16, 2016
1 parent e502904 commit afa1647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @copyright 2014-2016 Emre Akay
*
* @version 2.5.7
* @version 2.5.8
*
* @license LGPL
* @license http://opensource.org/licenses/LGPL-3.0 Lesser GNU Public License
Expand Down Expand Up @@ -475,7 +475,7 @@ public function remind_password($email){
$this->aauth_db->where('email', $email);
$this->aauth_db->update($this->config_vars['users'], $data);

if(is_array($this->config_vars['email_config'])){
if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){
$this->CI->email->initialize($this->config_vars['email_config']);
}

Expand Down Expand Up @@ -521,7 +521,7 @@ public function reset_password($ver_code){
$this->aauth_db->where('id', $row->id);
$this->aauth_db->update($this->config_vars['users'] , $data);

if(is_array($this->config_vars['email_config'])){
if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){
$this->CI->email->initialize($this->config_vars['email_config']);
}

Expand Down Expand Up @@ -909,7 +909,7 @@ public function send_verification($user_id){
$this->aauth_db->where('id', $user_id);
$this->aauth_db->update($this->config_vars['users'], $data);

if(is_array($this->config_vars['email_config'])){
if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){
$this->CI->email->initialize($this->config_vars['email_config']);
}

Expand Down

0 comments on commit afa1647

Please sign in to comment.