From c9b3dd0ffbf58254255da7ebcb006085a81ccdd4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 8 Aug 2006 05:33:10 +0000 Subject: [PATCH] r1030: Array casting to remove foreach() warnings --- docs/changes.txt | 4 ++++ editreport.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 39b3cf7..b7eb560 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,3 +1,7 @@ +1.1.0 Beta 1 +================== +- Array casting to remove foreach() warnings [editreport.php#132] + 1.1.0 ================== - User help cache was not rebuilt for descriptions in custom fields (http://bugs.iris-studios.com/showreport.php?bugid=7) diff --git a/editreport.php b/editreport.php index b4efb84..06a059d 100644 --- a/editreport.php +++ b/editreport.php @@ -124,12 +124,12 @@ if ($_POST['do'] == 'update') { $autoaction['fields'] = unserialize($autoaction['fieldchanges']); - foreach ($autoaction['fields']['builtin'] AS $field => $value) + foreach ((array)$autoaction['fields']['builtin'] AS $field => $value) { $bugsys->in["$field"] = $value; } - foreach ($autoaction['fields']['custom'] AS $field => $value) + foreach ((array)$autoaction['fields']['custom'] AS $field => $value) { $bugsys->in["field$field"] = $value; } -- 2.22.5