mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
webui code cleanup
This commit is contained in:
@ -403,7 +403,7 @@ class ModelUserUser extends Model {
|
||||
foreach($group as $g) {
|
||||
$g = rtrim($g);
|
||||
|
||||
if(!isset($__g[$groups[$g]])) {
|
||||
if($g && !isset($__g[$groups[$g]])) {
|
||||
$query = $this->db->query("INSERT INTO `" . TABLE_GROUP_USER . "` (id, uid) VALUES(?,?)", array($groups[$g], (int)$uid));
|
||||
$__g[$groups[$g]] = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user