From 56722ff95955930cea17cb54810db4d20f674532 Mon Sep 17 00:00:00 2001
From: Jaime Perez <jaime.perez@uninett.no>
Date: Tue, 12 Aug 2014 14:25:25 +0200
Subject: [PATCH] aselect: bugfix (do not try to throw a state-aware exception
 when no state is available!).

---
 modules/aselect/www/credentials.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/aselect/www/credentials.php b/modules/aselect/www/credentials.php
index bcdd208a3..1da71a664 100644
--- a/modules/aselect/www/credentials.php
+++ b/modules/aselect/www/credentials.php
@@ -9,7 +9,7 @@
 function check_credentials() {
 	
 	if (!array_key_exists('ssp_state', $_REQUEST))
-		SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_Exception("Missing ssp_state parameter"));	
+		throw new SimpleSAML_Error_Exception("Missing ssp_state parameter");
 	$id = $_REQUEST['ssp_state'];
 
 	// sanitize the input
-- 
GitLab