Skip to content
Snippets Groups Projects
Unverified Commit 31730ee8 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Merge branch 'patch-sqlstorage' into master

parents 67c29a61 23bcb641
No related branches found
No related tags found
No related merge requests found
......@@ -208,10 +208,9 @@ class sspmod_core_Storage_SQLPermanentStorage
if (!is_null($key2)) {
$conditions[] = "key2 = ".$this->db->quote($key2);
}
if (count($conditions) === 0) {
return '1';
}
return join(' AND ', $conditions);
$conditions[] = "(expire = NULL OR expire >= ".time().")";
return join(' AND ', $conditions);
}
}
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