Browse Source

Merge pull request #1 from emreakay/master

update
develop
hbinded 10 years ago
parent
commit
b5edcb4a8d
  1. 2
      README.md
  2. 23
      application/libraries/Aauth.php

2
README.md

@ -1,5 +1,5 @@
***
Aauth is a User Authorization Library for CodeIgniter 2.x, which aims to make easy some essential jobs such as login, permissions and access operations. Despite its ease of use, it has also very advanced features like private messages, groupping, access management, and public access.
Aauth is a User Authorization Library for CodeIgniter 2.x and 3.x, which aims to make easy some essential jobs such as login, permissions and access operations. Despite its ease of use, it has also very advanced features like private messages, groupping, access management, and public access.
**This is Quick Start page. You can also take a look at the [detailed Documentation Wiki](https://github.com/emreakay/CodeIgniter-Aauth/wiki/_pages) to learn about other great Features**

23
application/libraries/Aauth.php

@ -111,8 +111,8 @@ class Aauth {
$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)
$this->errors = $this->CI->session->flashdata('errors');
$this->infos = $this->CI->session->flashdata('infos');
$this->errors = $this->CI->session->flashdata('errors') ?: array();
$this->infos = $this->CI->session->flashdata('infos') ?: array();
}
@ -1867,15 +1867,7 @@ class Aauth {
*/
public function get_errors_array()
{
if (!count($this->errors)==0)
{
return $this->errors;
}
else
{
return array();
}
return $this->errors;
}
/**
@ -1962,14 +1954,7 @@ class Aauth {
*/
public function get_infos_array()
{
if (!count($this->infos)==0)
{
return $this->infos;
}
else
{
return array();
}
return $this->infos;
}

Loading…
Cancel
Save