xfrocks
Well-known member
XenForo version 1.0.1
File: library/XenForo/Model/NewsFeed.php
Line: 24
The query should use WHERE instead of WERE.
Please fix, thank you
In a related note: it doesn't make sense to use fetchAll with the primary key here I think
File: library/XenForo/Model/NewsFeed.php
Line: 24
PHP:
public function getNewsFeedItemById($newsFeedId)
{
return $this->_getDb()->fetchAll('
SELECT *
FROM xf_news_feed
WERE news_feed_id = ?
', $newsFeedId);
}
The query should use WHERE instead of WERE.
Please fix, thank you
In a related note: it doesn't make sense to use fetchAll with the primary key here I think