From a880affbafbab4eb32db373633c32a95358dd54e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 28 May 2006 18:58:13 +0000 Subject: [PATCH] r856: Now we get information correctly in fetch_user_cache() --- includes/class_notification.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class_notification.php b/includes/class_notification.php index e57c416..57d70aa 100644 --- a/includes/class_notification.php +++ b/includes/class_notification.php @@ -101,16 +101,16 @@ class NotificationCenter */ function fetch_user_cache() { - $favourites = $this->registry->db->query("SELECT userid FROM " . TABLE_PREFIX . "favourite WHERE bugid = " . $this->registry->clean($bug['bugid'], TYPE_UINT)); + $favourites = $this->registry->db->query("SELECT userid FROM " . TABLE_PREFIX . "favourite WHERE bugid = " . $this->registry->clean($this->bug['bugid'], TYPE_UINT)); while ($fav = $this->registry->db->fetch_array($favourites)) { $this->roles['favourite']["$fav[userid]"] = $fav['userid']; } - $voters = $this->regisry->db->query_first("SELECT userids FROM " . TABLE_PREFIX . "vote WHERE bugid = " . $this->registry->clean($bug['bugid'], TYPE_UINT)); + $voters = $this->registry->db->query_first("SELECT userids FROM " . TABLE_PREFIX . "vote WHERE bugid = " . $this->registry->clean($this->bug['bugid'], TYPE_UINT)); $this->roles['voter'] = explode(',', $voters['userids']); - $commenters = $this->registry->db->query("SELECT userid FROM " . TABLE_PREFIX . "comment WHERE bugid = " . $this->registry->clean($bug['bugid'], TYPE_UINT)); + $commenters = $this->registry->db->query("SELECT userid FROM " . TABLE_PREFIX . "comment WHERE bugid = " . $this->registry->clean($this->bug['bugid'], TYPE_UINT)); while ($comment = $this->registry->db->fetch_array($commenters)) { $this->roles['commenter']["$comment[userid]"] = $comment['userid']; -- 2.22.5