Fixed XF\Repository\SessionActivity::applyActivityDetails php 7+ compatibility issue

Affected version
2.2.1

Xon

Well-known member
PHP:
public function applyActivityDetails($activities)
{
...
$controller = $this->app()->extension()->extendClass($controller);
try
{
   $valid = ($controller
      && class_exists($controller)
      && is_callable([$controller, 'getActivityDetails'])
   );
}
catch (\Exception $e)
{
   // don't let a class load error (XFCP) error
   $valid = false;
}
However class_exists throws and Error not an Exception on class load error.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.2).

Change log:
Catch class load errors when applying session activity details on PHP 7+
There may be a delay before changes are rolled out to the XenForo Community.
 
Top