From 471066a15aba17714d1f3446e9e7a1ef3c3be094 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 18 Jun 2014 14:23:20 +0000 Subject: [PATCH] fix doc md problem --- application/default/controllers/ServiceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);