Fix an "invalid argument for foreach"
[bugdar.git] / userctrl.php
index 2ab798ce95e6c6815fb7d4f3b04620b985c8259b..26cbd1f7597d77f76776397f07305eede7109347 100644 (file)
@@ -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)
                                        {