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

Fixed Non existent method is used in XenResource_DataWriter_ResourceWatch

rellect

Well-known member
#1
In XenResource_DataWriter_ResourceWatch
PHP:
protected function _getExistingData($data)
{
    if (!is_array($data))
    {
        return false;
    }
    else if (isset($data['user_id'], $data['resource_id']))
    {
        $userId = $data['user_id'];
        $threadId = $data['resource_id'];
    }
    else if (isset($data[0], $data[1]))
    {
        $userId = $data[0];
        $threadId = $data[1];
    }
    else
    {
        return false;
    }

    return array('xf_resource_watch' => $this->_getResourceWatchModel()->getUserResourceWatchByThreadId($userId, $threadId));
}
getUserResourceWatchByThreadId does not exist in XenResource_Model_ResourceWatch.