* adjust code format.

This commit is contained in:
wyd621
2014-03-21 02:48:50 +00:00
parent 7b5af08f66
commit b1fbc91821
+2 -2
View File
@@ -953,10 +953,10 @@ class treeModel extends model
*/
public function delete($moduleID, $null = null)
{
$module = $this->getById($moduleID);
$module = $this->getById($moduleID);
if(empty($module)) return false;
$childs = $this->getAllChildId($moduleID);
$childs = $this->getAllChildId($moduleID);
$childs[$moduleID] = $moduleID;
$this->dao->delete()->from(TABLE_MODULE)->where('id')->in($childs)->exec();