mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 13:00:20 +02:00
fix a bug preventing the removal of the groups for a user
This commit is contained in:
1 parent
ee910e7735
commit
f4314f5afd
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user