Skip to content
Snippets Groups Projects
Commit 60143bf6 authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

SimpleSAML_Store_Memcache::set(): expire fix (issue #501).

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3125 44740490-163a-0410-bde0-09ae8108e29a
parent 963735cc
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,10 @@ class SimpleSAML_Store_Memcache extends SimpleSAML_Store {
assert('is_string($key)');
assert('is_null($expire) || (is_int($expire) && $expire > 2592000)');
if ($expire === NULL) {
$expire = 0;
}
SimpleSAML_Memcache::set('simpleSAMLphp.' . $type . '.' . $key, $value, $expire);
}
......
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