1. 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

Discussion in 'Resource Manager Resolved Bugs' started by rellect, Mar 31, 2014.

  1. rellect

    rellect 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.
     
    Chris D likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed, thanks.
     

Share This Page