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

Xon

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