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

Support nonexisting directories for hosted metadata in serialized metadatahandler

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1520 44740490-163a-0410-bde0-09ae8108e29a
parent 2541ffc0
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerSerialize extends SimpleSAML_Met ...@@ -106,6 +106,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerSerialize extends SimpleSAML_Met
$ret = array(); $ret = array();
$dir = $this->directory . '/' . rawurlencode($set); $dir = $this->directory . '/' . rawurlencode($set);
if(!is_dir($dir)) return $ret;
$dh = opendir($dir); $dh = opendir($dir);
if ($dh === FALSE) { if ($dh === FALSE) {
return NULL; return NULL;
......
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