Skip to content
Snippets Groups Projects
Commit db3af123 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Only list entities that are not expired...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1896 44740490-163a-0410-bde0-09ae8108e29a
parent 821c23be
No related branches found
No related tags found
No related merge requests found
...@@ -167,6 +167,16 @@ class SimpleSAML_Metadata_MetaDataStorageHandler { ...@@ -167,6 +167,16 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
foreach($this->sources as $source) { foreach($this->sources as $source) {
$srcList = $source->getMetadataSet($set); $srcList = $source->getMetadataSet($set);
foreach($srcList AS $key => $le) {
if (array_key_exists('expire', $le)) {
if ($le['expire'] < time()) {
unset($srcList[$key]);
}
}
}
/* $result is the last argument to array_merge because we want the content already /* $result is the last argument to array_merge because we want the content already
* in $result to have precedence. * in $result to have precedence.
*/ */
......
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