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

Check whether data store is initialized before trying to remove expired items.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@549 44740490-163a-0410-bde0-09ae8108e29a
parent f6c12ee5
No related branches found
No related tags found
No related merge requests found
......@@ -507,6 +507,10 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
*/
private function expireData() {
if(!is_array($this->dataStore)) {
return;
}
$ct = time();
foreach($this->dataStore as &$typedData) {
......
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