• 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()


Well-known member
XenForo version 1.0.1
File: library/XenForo/Model/NewsFeed.php
Line: 24

public function getNewsFeedItemById($newsFeedId)
return $this->_getDb()->fetchAll('

FROM xf_news_feed
WERE news_feed_id = ?

', $newsFeedId);
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 :)