From b2cbc15a07a5f5b50733b20bac6e857c021e93d5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 06:52:29 +0000 Subject: [PATCH] r1018: Casting things to arrays to remove foreach() warnings --- explain.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explain.php b/explain.php index 5b25fc2..6ed02c9 100644 --- a/explain.php +++ b/explain.php @@ -103,7 +103,7 @@ if ($_REQUEST['do'] == 'autoactions') $fields["$field[fieldid]"] = $field; } - foreach ($bugsys->datastore['autoaction'] AS $autoaction) + foreach ((array)$bugsys->datastore['autoaction'] AS $autoaction) { $autoaction['fieldchanges'] = unserialize($autoaction['fieldchanges']); @@ -124,14 +124,14 @@ if ($_REQUEST['do'] == 'autoactions') $trextra = ''; - foreach ($autoaction['fieldchanges']['builtin'] AS $name => $value) + foreach ((array)$autoaction['fieldchanges']['builtin'] AS $name => $value) { $left = $name; $right = $bugsys->datastore["$left"]["$value"]["$left"]; eval('$autoactions .= "' . $template->fetch('explain_row') . '";'); } - foreach ($autoaction['fieldchanges']['custom'] AS $id => $value) + foreach ((array)$autoaction['fieldchanges']['custom'] AS $id => $value) { if (!$fields["$id"]) { -- 2.22.5