From: Michael Date: Sun, 30 Sep 2018 20:40:40 +0000 (+0000) Subject: Avoiding a notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0769a115aad0fc7c39cdb71eed1582f649c1356e;p=friendica.git Avoiding a notice --- 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']); }