|
13 | 13 | * |
14 | 14 | * @copyright 2014-2016 Emre Akay |
15 | 15 | * |
16 | | - * @version 2.5.7 |
| 16 | + * @version 2.5.8 |
17 | 17 | * |
18 | 18 | * @license LGPL |
19 | 19 | * @license http://opensource.org/licenses/LGPL-3.0 Lesser GNU Public License |
@@ -475,7 +475,7 @@ public function remind_password($email){ |
475 | 475 | $this->aauth_db->where('email', $email); |
476 | 476 | $this->aauth_db->update($this->config_vars['users'], $data); |
477 | 477 |
|
478 | | - if(is_array($this->config_vars['email_config'])){ |
| 478 | + if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){ |
479 | 479 | $this->CI->email->initialize($this->config_vars['email_config']); |
480 | 480 | } |
481 | 481 |
|
@@ -521,7 +521,7 @@ public function reset_password($ver_code){ |
521 | 521 | $this->aauth_db->where('id', $row->id); |
522 | 522 | $this->aauth_db->update($this->config_vars['users'] , $data); |
523 | 523 |
|
524 | | - if(is_array($this->config_vars['email_config'])){ |
| 524 | + if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){ |
525 | 525 | $this->CI->email->initialize($this->config_vars['email_config']); |
526 | 526 | } |
527 | 527 |
|
@@ -909,7 +909,7 @@ public function send_verification($user_id){ |
909 | 909 | $this->aauth_db->where('id', $user_id); |
910 | 910 | $this->aauth_db->update($this->config_vars['users'], $data); |
911 | 911 |
|
912 | | - if(is_array($this->config_vars['email_config'])){ |
| 912 | + if(isset($this->config_vars['email_config']) && is_array($this->config_vars['email_config'])){ |
913 | 913 | $this->CI->email->initialize($this->config_vars['email_config']); |
914 | 914 | } |
915 | 915 |
|
|
0 commit comments