diff --git a/SeedDMS_Core/Core/inc.ClassDocument.php b/SeedDMS_Core/Core/inc.ClassDocument.php index 6d7560052..ea33030ce 100644 --- a/SeedDMS_Core/Core/inc.ClassDocument.php +++ b/SeedDMS_Core/Core/inc.ClassDocument.php @@ -4641,10 +4641,11 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */ if (!$this->_workflowState) $this->getWorkflowState(); $workflowstate = $this->_workflowState; - $transitions = $this->_workflow->getNextTransitions($workflowstate); - foreach($transitions as $transition) { - if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) { - $needwkflaction = true; + if($transitions = $this->_workflow->getNextTransitions($workflowstate)) { + foreach($transitions as $transition) { + if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) { + $needwkflaction = true; + } } } }