Commit 742727d0 authored by Guillaume Rousse's avatar Guillaume Rousse

use plain copy instead of reference

we're not in global context anymore, the local variable is lost when
exiting the function.
parent 2ae8a50c
......@@ -46,8 +46,8 @@ function updateMetadata() {
// Now merge IDPs from metadata and static file
$IDProviders = mergeInfo($IDProviders, $metadataIDProviders, $SAML2MetaOverLocalConf, $includeLocalConfEntries);
// For now copy the array by reference
$SProviders = &$metadataSProviders;
// There is no static file for SPs, use metadata only
$SProviders = $metadataSProviders;
} elseif (file_exists($metadataIDPFile)) {
......@@ -70,8 +70,8 @@ function updateMetadata() {
// Now merge IDPs from metadata and static file
$IDProviders = mergeInfo($IDProviders, $metadataIDProviders, $SAML2MetaOverLocalConf, $includeLocalConfEntries);
// For now copy the array by reference
$SProviders = &$metadataSProviders;
// There is no static file for SPs, use metadata only
$SProviders = $metadataSProviders;
}
// Close the metadata lock file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment