From a2d1ddbfe394c3a7119d9c01ddeca928dc346788 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 6 Sep 2008 16:23:54 -0400 Subject: [PATCH] Fix an "invalid argument for foreach" --- userctrl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userctrl.php b/userctrl.php index 2ab798c..26cbd1f 100644 --- a/userctrl.php +++ b/userctrl.php @@ -224,9 +224,9 @@ if ($_REQUEST['do'] == 'modify') $options = $db->query("SELECT * FROM " . TABLE_PREFIX . "useremail WHERE userid = " . bugdar::$userinfo['userid']); foreach ($options as $opt) { - foreach ($bugsys->emailoptions['notifications'] AS $name => $notif) + foreach (bugdar::$emailOptions['notifications'] AS $name => $notif) { - foreach ($bugsys->emailoptions['relations'] AS $name => $relation) + foreach (bugdar::$emailOptions['relations'] AS $name => $relation) { if ($opt['mask'] & $notif AND $opt['relation'] == $relation) { -- 2.22.5