XenForo
Administrative
- Thread starter
- Admin
- #1
Looks like a check is missing because it's not something you can encounter under normal usage
PHP:
Read more
ادامه مطلب...
PHP:
Code:
protected function getUserFromContext(array $context)
{
$em = \XF::em();
if (!empty($context['profile_post_id']))
{
/** @var \XF\Entity\ProfilePost $profilePost */
$profilePost = $em->find('XF:ProfilePost', intval($context['profile_post_id']), ['ProfileUser']);
if (!$profilePost || !$profilePost->canView() ||...
Read more
ادامه مطلب...