fix null datetime
This commit is contained in:
parent
2d8f6765ae
commit
4e62846042
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue