From ce1d570ef668148d42ef2482267c9358a929f632 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Fri, 5 Jan 2018 00:13:00 +0100
Subject: [PATCH] Update Error.php

---
 lib/SimpleSAML/Error/Error.php | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php
index 483b4c8f0..55b47a460 100644
--- a/lib/SimpleSAML/Error/Error.php
+++ b/lib/SimpleSAML/Error/Error.php
@@ -9,8 +9,6 @@
  */
 class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
 {
-
-
     /**
      * The error code.
      *
@@ -18,7 +16,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     private $errorCode;
 
-
     /**
      * The http code.
      *
@@ -26,7 +23,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     protected $httpCode = 500;
 
-
     /**
      * The error title tag in dictionary.
      *
@@ -34,7 +30,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     private $dictTitle;
 
-
     /**
      * The error description tag in dictionary.
      *
@@ -42,7 +37,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     private $dictDescr;
 
-
     /**
      * The name of module that threw the error.
      *
@@ -50,7 +44,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     private $module = null;
 
-
     /**
      * The parameters for the error.
      *
@@ -58,7 +51,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     private $parameters;
 
-
     /**
      * Name of custom include template for the error.
      *
@@ -66,7 +58,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
      */
     protected $includeTemplate = null;
 
-
     /**
      * Constructor for this error.
      *
@@ -254,9 +245,9 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
         $this->logError();
 
         $errorData = $this->saveError();
-
         $config = SimpleSAML_Configuration::getInstance();
 
+        $data = array();
         $data['showerrors'] = $config->getBoolean('showerrors', true);
         $data['error'] = $errorData;
         $data['errorCode'] = $this->errorCode;
-- 
GitLab