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

Duplicate False Method used in XenForo_DataWriter_NewsFeed

Discussion in 'Resolved Bug Reports' started by ragtek, Sep 13, 2011.

  1. ragtek

    ragtek Guest

    The getExistinData method doesn't work.

    PHP:
        protected function _getExistingData($data)
        {
            if (!
    $newsFeedId $this->_getExistingPrimaryKey($data))
            {
                return 
    false;
            }

            return array(
    'xf_news_feed' => $this->_getNewsFeedModel()->getNewsFeedById($newsFeedId));
        }
    should be

    PHP:
        protected function _getExistingData($data)
        {
            if (!
    $newsFeedId $this->_getExistingPrimaryKey($data))
            {
                return 
    false;
            }

            return array(
    'xf_news_feed' => $this->_getNewsFeedModel()->getNewsFeedItemById($newsFeedId));
        }
    xfrocks found this and it should be fixed ( http://xenforo.com/community/thread...o_datawriter_newsfeed-_getexistingdata.15880/ ) but it isn't in 1.0.4 :(
     
    PhpMember likes this.
  2. PhpMember

    PhpMember Member

    Good catch
     
  3. Mike

    Mike XenForo Developer Staff Member

Share This Page