commit e9d7f0828a52794048122de3ad8f5e7fbd8df0df
parent 5c786bec2bb3cffb96cc2ee8c5e4f4f9be2f3b76
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 1 Jan 2015 12:19:04 +0100
where is this variable going away? :/
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php b/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php
@@ -137,8 +137,9 @@ class SessionStorage implements StorageInterface
public function getState($clientConfigId, $state)
{
- echo $state;
+
if (!isset($_SESSION['php-oauth-client']['state'])) {
+ echo $state;
return false;
}
foreach ($_SESSION['php-oauth-client']['state'] as $s) {