From e81cba7d2cdaddf26b1be95fbbf5bcc548fcbd36 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 21 Nov 2011 05:37:48 +0000 Subject: [PATCH] * fix bug #261. --- module/bug/control.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 40ea882492..bff55132c6 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -775,8 +775,10 @@ class bug extends control */ public function ajaxGetModuleOwner($moduleID, $productID = 0) { - if($moduleID) die($this->dao->findByID($moduleID)->from(TABLE_MODULE)->fetch('owner')); - die($this->dao->findByID($productID)->from(TABLE_PRODUCT)->fetch('QM')); + $owner = ''; + if($moduleID) $owner = $this->dao->findByID($moduleID)->from(TABLE_MODULE)->fetch('owner'); + if(!$owner) $owner = $this->dao->findByID($productID)->from(TABLE_PRODUCT)->fetch('QM'); + die($owner); } /**