From 540c9d66180e66ecfc19012d29212b39701f56ee Mon Sep 17 00:00:00 2001 From: wangyidong Date: Sat, 2 Mar 2013 05:28:19 +0000 Subject: [PATCH] * fix a bug when module root is 0. --- module/tree/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index e6a1c0cd31..8225f53520 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -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; }