emreakay / CodeIgniter-Aauth

Authorization, Authentication and User Management library for Codeigniter 2.x and 3.x to make easy user management and permission operations
http://emreakay.com
GNU Lesser General Public License v3.0
394 stars 235 forks source link

set_user_var() BUG #25

Closed c2pdev closed 9 years ago

c2pdev commented 10 years ago
$this->aauth->unset_user_var( "possible_accounts" );
$this->aauth->set_user_var( "possible_accounts", 0 );

$possible = (int) $this->aauth->get_user_var( "possible_accounts" ) + 3;
$this->aauth->set_user_var( "possible_accounts", $possible );

the code above should end with only one record in database with value 3, but for some reason in database are two separate records with the key"possible_accounts" assigned to the same user with value 0 and 3. For some reason update is not working properly. I tried to find error there but I couldn't find it.

REJack commented 10 years ago

I cant reproduce the bug, i get only one record with "possible_accounts" with your 4 lines.

REJack commented 10 years ago

Oh sorry for my misstake i have checked your bug with my fixed version :smiley:

here is the fix information https://github.com/emreakay/CodeIgniter-Aauth/issues/19#issuecomment-53143974 or download the pull request from me there all bugs fixed

REJack commented 10 years ago

emreakey please close the fixed issues like this many are closable :smiley:

emreakay commented 9 years ago

ok @REJack :)

REJack commented 9 years ago

Please close #18, #19, #20, #21, #23, #29, #36, #39 and #41 too.