diff --git a/modules/saml/lib/Message.php b/modules/saml/lib/Message.php
index bbe6bea3258d57d3feccab144e73bd37b38b7805..6e90d65ce5ccf11761b3e37aee72869c1f39cb20 100644
--- a/modules/saml/lib/Message.php
+++ b/modules/saml/lib/Message.php
@@ -21,7 +21,7 @@ class sspmod_saml_Message {
 
 		$keyArray = SimpleSAML_Utilities::loadPrivateKey($srcMetadata, TRUE);
 		$certArray = SimpleSAML_Utilities::loadPublicKey($srcMetadata, FALSE);
-		$ = $srcMetadata->getString('signature.algorithm', XMLSecurityKey::RSA_SHA1);
+		$algo = $srcMetadata->getString('signature.algorithm', XMLSecurityKey::RSA_SHA1);
 
 		$privateKey = new XMLSecurityKey($algo, array('type' => 'private'));
 		if (array_key_exists('password', $keyArray)) {