From f6fe98b8b815d98589c033a589eed00a6ea6931d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 05:58:58 +0000 Subject: [PATCH] r1006: Cast to array to remove warnings --- userctrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userctrl.php b/userctrl.php index 760b514..182d71d 100644 --- a/userctrl.php +++ b/userctrl.php @@ -154,7 +154,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