fix php warning because of missing $workflow

This commit is contained in:
Uwe Steinmann 2021-05-31 21:54:16 +02:00
parent 4d931b74e5
commit f187a80ac5

View File

@ -608,6 +608,7 @@ $(document).ready( function() {
}
} elseif($workflowmode == 'advanced') {
if($accessop->maySetWorkflow()) {
$workflow = $latestContent->getWorkflow();
if(!$workflow) {
$items[] = array('link'=>"../out/out.SetWorkflow.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion(), 'icon'=>'random', 'label'=>'set_workflow');
}