diff --git a/www/saml2/sp/metadata.php b/www/saml2/sp/metadata.php
index 6af101ad0c67f26f0c7852a2be733150c639794c..4348c023c62ae693ef11a37f390473b4cd8baa1a 100644
--- a/www/saml2/sp/metadata.php
+++ b/www/saml2/sp/metadata.php
@@ -56,7 +56,7 @@ try {
 	'" . htmlspecialchars($spentityid) . "' => array(
  		'AssertionConsumerService' => '" . htmlspecialchars($metadata->getGenerated('AssertionConsumerService', 'saml20-sp-hosted')) . "',
  		'SingleLogoutService'      => '" . htmlspecialchars($metadata->getGenerated('SingleLogoutService', 'saml20-sp-hosted')) . "'
-	)
+	),
 ";
 	
 	$metaxml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
diff --git a/www/shib13/sp/metadata.php b/www/shib13/sp/metadata.php
index dda97b716606089a41ae30841655c28cda42c488..ecdcde4cb7a2750c8565febf160f32f8eb9870ca 100644
--- a/www/shib13/sp/metadata.php
+++ b/www/shib13/sp/metadata.php
@@ -35,7 +35,7 @@ try {
 	$metaflat = "
 	'" . htmlspecialchars($spentityid) . "' => array(
  		'AssertionConsumerService' => '" . htmlspecialchars($metadata->getGenerated('AssertionConsumerService', 'saml20-sp-hosted')) . "'
-	)
+	),
 ";
 	
 	$metaxml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>