Browse Source

Fix issue with messages

develop
CEkdhl 10 years ago
parent
commit
54f8563dce
  1. 23
      application/libraries/Aauth.php

23
application/libraries/Aauth.php

@ -111,8 +111,8 @@ class Aauth {
$this->aauth_db = $this->CI->load->database($this->config_vars['db_profile'], TRUE); $this->aauth_db = $this->CI->load->database($this->config_vars['db_profile'], TRUE);
// load error and info messages from flashdata (but don't store back in flashdata) // load error and info messages from flashdata (but don't store back in flashdata)
$this->errors = $this->CI->session->flashdata('errors'); $this->errors = $this->CI->session->flashdata('errors') ?: array();
$this->infos = $this->CI->session->flashdata('infos'); $this->infos = $this->CI->session->flashdata('infos') ?: array();
} }
@ -1860,15 +1860,7 @@ class Aauth {
*/ */
public function get_errors_array() public function get_errors_array()
{ {
return $this->errors;
if (!count($this->errors)==0)
{
return $this->errors;
}
else
{
return array();
}
} }
/** /**
@ -1955,14 +1947,7 @@ class Aauth {
*/ */
public function get_infos_array() public function get_infos_array()
{ {
if (!count($this->infos)==0) return $this->infos;
{
return $this->infos;
}
else
{
return array();
}
} }

Loading…
Cancel
Save