From 726dcd842ef4df53aa80d6fb8b63378fca73f7f4 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 4 Nov 2009 13:51:03 +0000 Subject: [PATCH] SAMLParser: Cast "index" to integer git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1940 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Metadata/SAMLParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php index 49a41e974..a5885b7c1 100644 --- a/lib/SimpleSAML/Metadata/SAMLParser.php +++ b/lib/SimpleSAML/Metadata/SAMLParser.php @@ -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'); -- GitLab