From 4a98dbe9a598d7db6b63529028717a58a41c7787 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 24 Jun 2012 19:43:38 +0200 Subject: [PATCH] Fix: Remove warning --- htdocs/admin/workflow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php index 18e0fa495be..2e6f9e93733 100755 --- a/htdocs/admin/workflow.php +++ b/htdocs/admin/workflow.php @@ -88,14 +88,14 @@ $workflow=array( ) ); -if (! empty($conf->modules_parts['workflow'])) $workflow = array_merge($workflow, $conf->modules_parts['workflow']); +if (! empty($conf->modules_parts['workflow']) && is_array($conf->modules_parts['workflow'])) $workflow = array_merge($workflow, $conf->modules_parts['workflow']); foreach($workflow as $child => $parents) { if ($conf->$child->enabled) { $langs->Load($child.'@'.$child); - + foreach($parents as $parent => $actions) { if ($conf->$parent->enabled)