- 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;
}
class_exists
throws and Error
not an Exception
on class load error.