From e214c2212415d9f9f0eac88224c1781d142a7aed Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sun, 5 Aug 2018 14:35:09 +0200
Subject: [PATCH] Fix wrong use of class_implements()

---
 lib/SimpleSAML/XHTML/Template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 74f85e631..3f9dbdc13 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -120,7 +120,7 @@ class Template
         // check if we need to attach a theme controller
         $controller = $this->configuration->getString('theme.controller', false);
         if ($controller && class_exists($controller) &&
-            class_implements($controller, '\SimpleSAML\XHTML\TemplateControllerInterface')
+            in_array('\SimpleSAML\XHTML\TemplateControllerInterface', class_implements($controller))
         ) {
             $this->controller = new $controller();
         }
-- 
GitLab