Fixed Non existent method is used in XenResource_DataWriter_ResourceWatch

refael

Well-known member
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.
 
Back
Top Bottom