From 44dbf74f7bc3dfb98c49a66d86ee4d4e10f88bc2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 22 Aug 2006 01:34:30 +0000 Subject: [PATCH] r1124: Array cast for foreach() warnings on ln 135 --- admin/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/user.php b/admin/user.php index 8121c2c..e30eab7 100644 --- a/admin/user.php +++ b/admin/user.php @@ -132,7 +132,7 @@ if ($_POST['do'] == 'update') $db->query("DELETE FROM " . TABLE_PREFIX . "useremail WHERE userid = " . $bugsys->userinfo['userid']); $bugsys->input_clean('emailopts', TYPE_INT); - foreach ($bugsys->in['emailopts'] AS $relation => $bitarr) + foreach ((array)$bugsys->in['emailopts'] AS $relation => $bitarr) { $bitmask = 0; foreach ($bitarr AS $option => $yes) -- 2.43.5