diff --git a/modules/core/lib/Auth/Process/AttributeValueMap.php b/modules/core/lib/Auth/Process/AttributeValueMap.php index a3e9f5626f98f0b6daa2e231ef34d2a648bc0416..890cb0208fa07cf00247540b01b8c634d299deef 100644 --- a/modules/core/lib/Auth/Process/AttributeValueMap.php +++ b/modules/core/lib/Auth/Process/AttributeValueMap.php @@ -92,10 +92,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)) {