mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
do not show subheader of timeline if empty
This commit is contained in:
parent
3f82cb1957
commit
659f788de4
|
@ -1113,9 +1113,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
</div>
|
||||
<?php
|
||||
if($user->isAdmin()) {
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
$timeline = $document->getTimeline();
|
||||
if($timeline) {
|
||||
$this->contentHeading(getMLText("timeline"));
|
||||
foreach($timeline as &$item) {
|
||||
switch($item['type']) {
|
||||
case 'add_version':
|
||||
|
|
Loading…
Reference in New Issue
Block a user