Skip to content
Snippets Groups Projects
Commit 9cedd1a5 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix for command line + sessionhandler php

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1788 44740490-163a-0410-bde0-09ae8108e29a
parent e79b36e7
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler { ...@@ -83,6 +83,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler {
/* Check if key exists first to avoid notice-messages in the /* Check if key exists first to avoid notice-messages in the
* log. * log.
*/ */
if (!isset($_SESSION)) return NULL;
if(!array_key_exists($key, $_SESSION)) { if(!array_key_exists($key, $_SESSION)) {
/* We should return NULL if we don't have that /* We should return NULL if we don't have that
* key in the session. * key in the session.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment