mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +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 = '') {
|
private function update_group_settings($uid = -1, $group = '') {
|
||||||
$__g = array();
|
$__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));
|
$query = $this->db->query("DELETE FROM `" . TABLE_GROUP_USER . "` WHERE uid=?", array($uid));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user