From b39259ca75299f2ac4a24655e7168ad70214e3f2 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 13 May 2008 15:02:27 +0000 Subject: [PATCH] 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 --- lib/SimpleSAML/Session.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 9507b66b0..9845355a4 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -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) { -- GitLab