Skip to content
Snippets Groups Projects
Commit bc78fd96 authored by Olav Morken's avatar Olav Morken
Browse files

MemcacheStore: Proper check for key-not-found.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@562 44740490-163a-0410-bde0-09ae8108e29a
parent a4a73d3f
No related branches found
No related tags found
No related merge requests found
......@@ -60,12 +60,12 @@ class SimpleSAML_MemcacheStore {
assert(self::isValidID($id));
$serializedData = SimpleSAML_Memcache::get($id);
$data = unserialize($serializedData);
if($data === NULL) {
return $NULL;
if($serializedData === NULL) {
return NULL;
}
$data = unserialize($serializedData);
if(!($data instanceof self)) {
SimpleSAML_Logger::warning('Retrieved key from memcache did not contain a MemcacheStore object.');
return NULL;
......
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