webui code cleanup

This commit is contained in:
SJ
2012-07-06 21:58:52 +02:00
parent 00be0effe7
commit 4703bedcfe
4 changed files with 6 additions and 2 deletions

View File

@ -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;
}