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

MetaDataStorageSource::getEntityIdFromHostPath: Handle missing metadata set.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1454 44740490-163a-0410-bde0-09ae8108e29a
parent df5a47fe
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,10 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource { ...@@ -107,6 +107,10 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
public function getEntityIdFromHostPath($hostPath, $set, $type = 'entityid') { public function getEntityIdFromHostPath($hostPath, $set, $type = 'entityid') {
$metadataSet = $this->getMetadataSet($set); $metadataSet = $this->getMetadataSet($set);
if ($metadataSet === NULL) {
/* This metadata source does not have this metadata set. */
return NULL;
}
foreach($metadataSet AS $index => $entry) { foreach($metadataSet AS $index => $entry) {
......
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