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

Fix bug getting the arp definition from metarefresh config sets

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1512 44740490-163a-0410-bde0-09ae8108e29a
parent f9a926ef
No related branches found
No related tags found
No related merge requests found
......@@ -43,17 +43,16 @@ function metarefresh_hook_cron(&$croninfo) {
$outputFormat = $set->getValueValidate('outputFormat', array('flatfile', 'serialize'), 'flatfile');
switch ($outputFormat) {
case 'flatfile':
$metaloader->writeMetadataFiles($outputDir);
break;
case 'serialize':
$metaloader->writeMetadataSerialize($outputDir);
break;
case 'flatfile':
$metaloader->writeMetadataFiles($outputDir);
break;
case 'serialize':
$metaloader->writeMetadataSerialize($outputDir);
break;
}
if (array_key_exists('arp', $set)) {
$arpconfig = SimpleSAML_Configuration::loadFromArray($set['arp']);
if ($set->hasValue('arp')) {
$arpconfig = SimpleSAML_Configuration::loadFromArray($set->getValue('arp'));
$metaloader->writeARPfile($arpconfig);
}
}
......
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