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

SAMLParser: Cast "index" to integer

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1940 44740490-163a-0410-bde0-09ae8108e29a
parent 0cfc7f37
No related branches found
No related tags found
No related merge requests found
......@@ -1157,7 +1157,7 @@ class SimpleSAML_Metadata_SAMLParser {
if(!$element->hasAttribute('index')) {
throw new Exception($name . ' missing required index attribute.');
}
$ep['index'] = $element->getAttribute('index');
$ep['index'] = (int)$element->getAttribute('index');
if($element->hasAttribute('isDefault')) {
$t = $element->getAttribute('isDefault');
......
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