I have a problem with the administrator of members
I had a user registered and activated with an activity in the application for 23 days
I proceeded to disable the system, as a result, I found that the application deletes the record of this person
Looking at the code I found that the system deletes users who have not been activated for X range of days (specified in the settings panel),
is a mistake because they were activated users can not be disabled
Besides the application to crash
I suggest to modify the code in userlib.php
/ / Remove user accounts Any Which Have Not Been Activated
/ / Within The Specified deadline
$ query = $ this-> CI-> user_model-> delete ('Users', 'DATE_ADD (created, INTERVAL ". $ this-> CI-> Preferences-> item (' account_activation_time ').' DAY) <= NOW () AND active = 0 ');
}
to:
/ / Remove user accounts Any Which Have Not Been Activated
/ / Within The Specified deadline
$ query = $ this-> CI-> user_model-> delete ('Users', 'DATE_ADD (created, INTERVAL ". $ this-> CI-> Preferences-> item (' account_activation_time ').' DAY) <= NOW () AND active = 0 AND ISNULL (last_visit) ');
}