Skip to content

Commit

Permalink
enhanced is_banned() returns now TRUE if user doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Nov 11, 2018
1 parent 3a4d556 commit d88a926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@ public function unban_user($user_id) {
*/
public function is_banned($user_id) {

if ( ! $this->user_exist_by_id($user_id)) {
return TRUE;
}

$query = $this->aauth_db->where('id', $user_id);
$query = $this->aauth_db->where('banned', 1);

Expand Down

0 comments on commit d88a926

Please sign in to comment.