This commit is contained in:
chenfeiCF
2016-09-12 14:28:27 +08:00
parent 6ad33fa6a8
commit 6a3545ee95
+2
View File
@@ -395,6 +395,8 @@ class userModel extends model
}
}
if(empty($this->post->groups)) $this->dao->delete()->from(TABLE_USERGROUP)->where('account')->eq($oldUser->account)->exec();
if($this->post->groups)
{
$this->dao->delete()->from(TABLE_USERGROUP)->where('account')->eq($oldUser->account)->exec();