[ticket/11103] Bug (using wrong variable)

PHPBB3-11103
This commit is contained in:
Nathan Guse 2012-09-27 18:44:31 -05:00
parent 858201cc1f
commit cbe0d478f1

View file

@ -93,7 +93,7 @@ class phpbb_notifications_type_post_in_queue extends phpbb_notifications_type_po
$sql = 'SELECT *
FROM ' . USER_NOTIFICATIONS_TABLE . "
WHERE item_type = '" . self::$notification_option['id'] . "'
AND " . $db->sql_in_set('user_id', $auth_approve[$topic['forum_id']]['m_approve']);
AND " . $db->sql_in_set('user_id', $auth_approve[$post['forum_id']]['m_approve']);
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{