Skip to content

Commit

Permalink
Update array clearing for php compatibilities
Browse files Browse the repository at this point in the history
remove array clearing method (lines 1911 and 2001) :
```php
$this->infos = [];
```
in profit of a more php compatible method :
```php
$this->infos = array();
```
  • Loading branch information
scombat committed Nov 17, 2015
1 parent 4d7dc29 commit b254c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ public function print_errors($divider = '<br />')
*/
public function clear_errors()
{
$this->errors = [];
$this->errors = array();
$this->CI->session->set_flashdata('errors', $this->errors);
}

Expand Down Expand Up @@ -1998,7 +1998,7 @@ public function print_infos($divider = '<br />')
*/
public function clear_infos()
{
$this->infos = [];
$this->infos = array();
$this->CI->session->set_flashdata('infos', $this->infos);
}

Expand Down

0 comments on commit b254c9d

Please sign in to comment.