From fe9d49242a5e5680696bfc14d1b87056113230c8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 20 Aug 2006 18:31:05 +0000 Subject: [PATCH] r1094: Cast to remove foreach() warnings --- userctrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userctrl.php b/userctrl.php index 4882084..5642abf 100644 --- a/userctrl.php +++ b/userctrl.php @@ -157,7 +157,7 @@ if ($_POST['do'] == 'update') foreach ((array)$bugsys->in['emailopts'] AS $relation => $bitarr) { $bitmask = 0; - foreach ($bitarr AS $option => $yes) + foreach ((array)$bitarr AS $option => $yes) { $bitmask += $option * $yes; } -- 2.22.5