* fix a bug when module root is 0.

This commit is contained in:
wangyidong
2013-03-02 05:28:19 +00:00
parent 43c897c6c8
commit 540c9d6618

View File

@@ -171,7 +171,7 @@ class tree extends control
die(js::reload('parent'));
}
$module = $this->tree->getById($moduleID);
if($module->owner == null)
if($module->owner == null and $module->root != 0)
{
$module->owner = $this->loadModel('product')->getById($module->root)->QD;
}