mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:31:58 +01:00
fix a bug preventing the removal of the groups for a user
This commit is contained in:
parent
ee910e7735
commit
f4314f5afd
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user