Skip to content
Snippets Groups Projects
Commit 709fd925 authored by Christopher Smith's avatar Christopher Smith
Browse files

resolve scrutinizer issue, is_a type hint doesn't allow null

parent 2400ddcb
No related branches found
No related tags found
No related merge requests found
......@@ -638,7 +638,7 @@ function p_get_renderer($mode) {
// not bundled, see if its an enabled plugin for rendering $mode
$Renderer = $plugin_controller->load('renderer',$rname);
if (is_a($Renderer, 'Doku_Renderer') && ($mode == $Renderer->getFormat())) {
if ($Renderer && is_a($Renderer, 'Doku_Renderer') && ($mode == $Renderer->getFormat())) {
return $Renderer;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment