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 46b95c7..f535bcc 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']);
        }