* finish task #1662.

This commit is contained in:
wyd621
2013-08-02 15:44:40 +08:00
parent 01dd3ac526
commit 1140dbe11f
18 changed files with 36 additions and 18 deletions
+1
View File
@@ -329,6 +329,7 @@ class userModel extends model
$this->dao->delete()->from(TABLE_USERGROUP)->where('account')->eq($oldUser->account)->exec();
foreach($this->post->groups as $groupID)
{
$data = new stdclass();
$data->account = $this->post->account;
$data->group = $groupID;
$this->dao->insert(TABLE_USERGROUP)->data($data)->exec();