fix null datetime

This commit is contained in:
wlx 2013-06-03 22:27:16 +00:00
parent 2d8f6765ae
commit 4e62846042
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ $this->headScript()->appendFile('/js/jquery.masonry.min.js');
<div class="data_content clear">
<div class="thumb box-shadow"><img src="/service/thumb/uuid/<?php echo $md['uuid'];?>" /></div>
<div class="description"><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></div>
<div class="description">时间范围:<?= date("Y-m-d",strtotime($md['timebegin'])) ?> - <?= date("Y-m-d",strtotime($md['timeend'])) ?></div>
</div>
<?php if ($md['timebegin']) : ?>
<div class="description">时间范围:<?= date("Y-m-d",strtotime($md['timebegin'])) ?> - <?= date("Y-m-d",strtotime($md['timeend'])) ?></div>
<?php endif; ?>
</div>
</li>
<?php endforeach;endif; ?>
</ul>