* compatible with that of model::delete().

This commit is contained in:
xia0ta0
2013-07-24 10:49:34 +08:00
parent ce358e310c
commit 922c7edf3f
+2 -1
View File
@@ -182,10 +182,11 @@ class groupModel extends model
* Delete a group.
*
* @param int $groupID
* @param null $null compatible with that of model::delete()
* @access public
* @return void
*/
public function delete($groupID)
public function delete($groupID, $null = null)
{
$this->dao->delete()->from(TABLE_GROUP)->where('id')->eq($groupID)->exec();
$this->dao->delete()->from(TABLE_USERGROUP)->where('`group`')->eq($groupID)->exec();