Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
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));}[/PHP]getUserResourceWatchByThreadId does not exist in XenResource_Model_ResourceWatch.
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 array('xf_resource_watch' => $this->_getResourceWatchModel()->getUserResourceWatchByThreadId($userId, $threadId));
[/PHP]
getUserResourceWatchByThreadId does not exist in XenResource_Model_ResourceWatch.
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences