diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php
index 218c9635..0ecf4ba3 100644
--- a/application/default/controllers/ServiceController.php
+++ b/application/default/controllers/ServiceController.php
@@ -334,7 +334,7 @@ class ServiceController extends Zend_Controller_Action
{
$fund.='
'.$refer['fund_type'].':'.str_replace(array("\r\n", "\n", "\r"),'',$refer['title']).'(编号:'.$refer['fund_id'].")";
}
- if (empty($fund)) $fund=$row['suppinfo'];
+ if (empty($fund) && !empty($row['suppinfo'])) $fund=$row['suppinfo'];
}
@@ -356,7 +356,7 @@ class ServiceController extends Zend_Controller_Action
$xslt->setParameter('','projection',$projection);
$xslt->setParameter('','reference',$reference);
$xslt->setParameter('','citation',$citation);
- $xslt->setParameter('','fund',$fund);
+ if ($fund) $xslt->setParameter('','fund',$fund);
$XSL = new DOMDocument();
$XSL->load( '../data/doc.xsl', LIBXML_NOCDATA);
$xslt->importStylesheet($XSL);