Skip to content

Commit d88a926

Browse files
committed
enhanced is_banned() returns now TRUE if user doesn't exist
1 parent 3a4d556 commit d88a926

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

application/libraries/Aauth.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,10 @@ public function unban_user($user_id) {
10711071
*/
10721072
public function is_banned($user_id) {
10731073

1074+
if ( ! $this->user_exist_by_id($user_id)) {
1075+
return TRUE;
1076+
}
1077+
10741078
$query = $this->aauth_db->where('id', $user_id);
10751079
$query = $this->aauth_db->where('banned', 1);
10761080

0 commit comments

Comments
 (0)