From 54f8563dcef0686fc4696a7b33fc77d38a8783a0 Mon Sep 17 00:00:00 2001 From: CEkdhl Date: Fri, 14 Aug 2015 22:36:49 +0200 Subject: [PATCH 1/3] Fix issue with messages --- application/libraries/Aauth.php | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index c893deb..2f4484f 100644 --- a/application/libraries/Aauth.php +++ b/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(); } @@ -1860,15 +1860,7 @@ class Aauth { */ public function get_errors_array() { - - if (!count($this->errors)==0) - { - return $this->errors; - } - else - { - return array(); - } + return $this->errors; } /** @@ -1955,14 +1947,7 @@ class Aauth { */ public function get_infos_array() { - if (!count($this->infos)==0) - { - return $this->infos; - } - else - { - return array(); - } + return $this->infos; } From 65c565b7a7e0a0915d185c56e5b365d4f26b7137 Mon Sep 17 00:00:00 2001 From: Emre Akay Date: Mon, 21 Sep 2015 22:52:47 +0300 Subject: [PATCH 2/3] 3x --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 901c2bc..27888e1 100644 --- a/README.md +++ b/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 abd 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** From 29330e248f493b4d505cfcfbc21acb49b5b8e648 Mon Sep 17 00:00:00 2001 From: Emre Akay Date: Mon, 21 Sep 2015 22:53:15 +0300 Subject: [PATCH 3/3] 3.x update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27888e1..e15c64a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ *** -Aauth is a User Authorization Library for CodeIgniter 2.x abd 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. +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**