Browse Source

Update array clearing for php compatibilities

remove array clearing method (lines 1911 and 2001) :
```php
$this->infos = [];
```
in profit of a more php compatible method :
```php
$this->infos = array();
```
develop
scombat 10 years ago
parent
commit
b254c9d715
  1. 4
      application/libraries/Aauth.php

4
application/libraries/Aauth.php

@ -1908,7 +1908,7 @@ class Aauth {
*/ */
public function clear_errors() public function clear_errors()
{ {
$this->errors = []; $this->errors = array();
$this->CI->session->set_flashdata('errors', $this->errors); $this->CI->session->set_flashdata('errors', $this->errors);
} }
@ -1998,7 +1998,7 @@ class Aauth {
*/ */
public function clear_infos() public function clear_infos()
{ {
$this->infos = []; $this->infos = array();
$this->CI->session->set_flashdata('infos', $this->infos); $this->CI->session->set_flashdata('infos', $this->infos);
} }

Loading…
Cancel
Save