Browse Source

enhanced `is_banned()` returns now TRUE if user doesn't exist

master
REJack 7 years ago
parent
commit
d88a926e03
  1. 4
      application/libraries/Aauth.php

4
application/libraries/Aauth.php

@ -1071,6 +1071,10 @@ class Aauth {
*/
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);

Loading…
Cancel
Save