Skip to content
Snippets Groups Projects
Unverified Commit e214c221 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix wrong use of class_implements()

parent 32b05417
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ class Template ...@@ -120,7 +120,7 @@ class Template
// check if we need to attach a theme controller // check if we need to attach a theme controller
$controller = $this->configuration->getString('theme.controller', false); $controller = $this->configuration->getString('theme.controller', false);
if ($controller && class_exists($controller) && if ($controller && class_exists($controller) &&
class_implements($controller, '\SimpleSAML\XHTML\TemplateControllerInterface') in_array('\SimpleSAML\XHTML\TemplateControllerInterface', class_implements($controller))
) { ) {
$this->controller = new $controller(); $this->controller = new $controller();
} }
......
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