fix doc md problem

This commit is contained in:
wlx 2014-06-18 14:23:20 +00:00
parent cea0a78962
commit 471066a15a
1 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ class ServiceController extends Zend_Controller_Action
{
$fund.='<li>'.$refer['fund_type'].''.str_replace(array("\r\n", "\n", "\r"),'',$refer['title']).'(编号:'.$refer['fund_id'].")</li>";
}
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);