diff --git a/index.php b/index.php index 46b95c75e4..f535bcc0d1 100644 --- a/index.php +++ b/index.php @@ -353,7 +353,7 @@ if ($a->module_loaded) { // "rawContent" is especially meant for technical endpoints. // This endpoint doesn't need any theme initialization or other comparable stuff. - if (!$a->error && $a->module_class) { + if (!$a->error && $a->module_class && method_exists($a->module_class, 'rawContent')) { call_user_func([$a->module_class, 'rawContent']); }