diff --git a/modules/core/lib/Auth/Process/AttributeValueMap.php b/modules/core/lib/Auth/Process/AttributeValueMap.php index 86a2471113464f77b73ec35c646f537d41dc4c99..cb6f8ebd017d9ef99c9924eacc7eb2d25fff6041 100644 --- a/modules/core/lib/Auth/Process/AttributeValueMap.php +++ b/modules/core/lib/Auth/Process/AttributeValueMap.php @@ -19,13 +19,13 @@ class AttributeValueMap extends \SimpleSAML\Auth\ProcessingFilter * The name of the attribute we should assign values to (ie: the target attribute). * @var string */ - private $targetattribute; + private $targetattribute = ''; /** * The name of the attribute we should create values from. * @var string */ - private $sourceattribute; + private $sourceattribute = ''; /** * The required $sourceattribute values and target affiliations. @@ -93,10 +93,10 @@ class AttributeValueMap extends \SimpleSAML\Auth\ProcessingFilter } // now validate it - if (!is_string($this->sourceattribute)) { + if (!empty($this->sourceattribute)) { throw new Error\Exception("AttributeValueMap: 'sourceattribute' configuration option not set."); } - if (!is_string($this->targetattribute)) { + if (!empty($this->targetattribute)) { throw new Error\Exception("AttributeValueMap: 'targetattribute' configuration option not set."); } if (!is_array($this->values)) {