Skip to content

Commit

Permalink
Undo last update to ShibError.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Aug 30, 2017
1 parent 75f8867 commit 951c60e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Service/ShibError.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ class ShibError
* passed as parameters to the 'redirectErrors' handler URL, i.e.
* in the $_GET global variable.
*
* @param string|null $redirectUrl In case of Shibboleth error, redirect
* to this URL. If null, then print out error to user.
*
* @return ShibError A new ShibError object.
*/
public function __construct($redirectUrl = null)
public function __construct()
{
$this->errorarray = array();
foreach (static::$errorparams as $param) {
Expand All @@ -101,8 +98,6 @@ public function __construct($redirectUrl = null)
$responseurl,
false
);
} elseif (!is_null($redirectUrl)) {
header('Location: ' . $redirectUrl);
} else {
$this->printError();
}
Expand Down

0 comments on commit 951c60e

Please sign in to comment.