1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Typo in XenForo_Model_NewsFeed::getNewsFeedItemById()

Discussion in 'Resolved Bug Reports' started by xfrocks, May 10, 2011.

  1. xfrocks

    xfrocks Well-Known Member

    XenForo version 1.0.1
    File: library/XenForo/Model/NewsFeed.php
    Line: 24

    public function getNewsFeedItemById($newsFeedId)

    SELECT *
    FROM xf_news_feed
    WERE news_feed_id = ?

    The query should use WHERE instead of WERE.

    Please fix, thank you :D

    In a related note: it doesn't make sense to use fetchAll with the primary key here I think :)
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed on both counts (typo and fetchAll->fetchRow).
    xfrocks likes this.

Share This Page