diff --git a/modules/core/lib/Auth/Process/AttributeValueMap.php b/modules/core/lib/Auth/Process/AttributeValueMap.php index cb6f8ebd017d9ef99c9924eacc7eb2d25fff6041..f966fa6e8e5fc4043ed108c77fee529db955fb74 100644 --- a/modules/core/lib/Auth/Process/AttributeValueMap.php +++ b/modules/core/lib/Auth/Process/AttributeValueMap.php @@ -93,10 +93,10 @@ class AttributeValueMap extends \SimpleSAML\Auth\ProcessingFilter } // now validate it - if (!empty($this->sourceattribute)) { + if (empty($this->sourceattribute)) { throw new Error\Exception("AttributeValueMap: 'sourceattribute' configuration option not set."); } - if (!empty($this->targetattribute)) { + if (empty($this->targetattribute)) { throw new Error\Exception("AttributeValueMap: 'targetattribute' configuration option not set."); } if (!is_array($this->values)) {