From f4314f5afdc30badfe025b96658e5b075b5dd23c Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 4 Jul 2012 10:11:36 +0200 Subject: [PATCH] fix a bug preventing the removal of the groups for a user --- webui/model/user/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/user/user.php b/webui/model/user/user.php index d53fdef6..dd12c6ef 100644 --- a/webui/model/user/user.php +++ b/webui/model/user/user.php @@ -382,7 +382,7 @@ class ModelUserUser extends Model { private function update_group_settings($uid = -1, $group = '') { $__g = array(); - if($uid <= 0 || $group == '') { return 0; } + if($uid <= 0) { return 0; } $query = $this->db->query("DELETE FROM `" . TABLE_GROUP_USER . "` WHERE uid=?", array($uid));