]> git.mxchange.org Git - friendica.git/commitdiff
Avoiding a notice
authorMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 20:40:40 +0000 (20:40 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 20:40:40 +0000 (20:40 +0000)
index.php

index 46b95c75e4bfe0b0962b81f7f54cbea9ad763179..f535bcc0d1fcab340557208c28a1aa1f1613b6d4 100644 (file)
--- 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']);
        }