From 7045e71b9d31a1f74e5b374e58d176f41e10ab83 Mon Sep 17 00:00:00 2001
From: Hans Zandbelt <hans.zandbelt@surfnet.nl>
Date: Mon, 24 Aug 2009 13:34:21 +0000
Subject: [PATCH] fix typo

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1710 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/adfs/www/idp/prp.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/adfs/www/idp/prp.php b/modules/adfs/www/idp/prp.php
index c75811308..4cec12fed 100644
--- a/modules/adfs/www/idp/prp.php
+++ b/modules/adfs/www/idp/prp.php
@@ -55,7 +55,7 @@ function ADFS_GenerateResponse($issuer, $target, $nameid, $attributes) {
 		$hasValue = FALSE;
 		$r = '<saml:Attribute AttributeNamespace="http://schemas.xmlsoap.org/claims" AttributeName="' . htmlspecialchars($name) .'">';
 		foreach ($values as $value) {
-			if (isset($value) or ($value !== '')) continue;
+			if ( (!isset($value)) or ($value === '')) continue;
 			$r .= '<saml:AttributeValue>' . htmlspecialchars($value) . '</saml:AttributeValue>';
 			$hasValue = TRUE;
 		}
-- 
GitLab