r1030: Array casting to remove foreach() warnings
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 8 Aug 2006 05:33:10 +0000 (05:33 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 8 Aug 2006 05:33:10 +0000 (05:33 +0000)
docs/changes.txt
editreport.php

index 39b3cf7dcc30ee22206eea07c33038fa6a0fc092..b7eb560177fcc3d7e4090f79f7d4253ae0674f4e 100644 (file)
@@ -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)
index b4efb84c25dd903172bc23029fc508d6b774350b..06a059dd099ac9946c17e10abc1ba0c2ebc988ad 100644 (file)
@@ -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;
                }