PMC-1395 Fatal error: Declaration of remove()

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-11-26 08:35:43 -04:00
parent 40bb7f17a7
commit edf16e4d0a
2 changed files with 3 additions and 3 deletions

View File

@@ -758,7 +758,7 @@ class headPublisher
$sjson = $oServerConf->getProperty($keyState); $sjson = $oServerConf->getProperty($keyState);
if ($sjson !== "") { if ($sjson !== "") {
$json = G::json_decode($sjson); $json = G::json_decode($sjson);
if ((is_array($json) || is_object($json)) && sizeof($json)){ if (is_iterable($json)) {
foreach ($json as $key => $value) { foreach ($json as $key => $value) {
$views[$key] = $value; $views[$key] = $value;
} }

View File

@@ -87,9 +87,9 @@ class WorkflowBpmn extends Project\Workflow
return parent::getList($start, $limit, $filter, $changeCaseTo); return parent::getList($start, $limit, $filter, $changeCaseTo);
} }
public function remove() public function remove($flagRemoveCases = true, $onlyDiagram = false)
{ {
parent::remove(); parent::remove($flagRemoveCases, $onlyDiagram);
$this->bp->remove(); $this->bp->remove();
} }