Skip to content
Snippets Groups Projects
Commit cbc51541 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix UninitializedProperty

parent d4dbdd7e
Branches
Tags
No related merge requests found
...@@ -93,10 +93,10 @@ class AttributeValueMap extends \SimpleSAML\Auth\ProcessingFilter ...@@ -93,10 +93,10 @@ class AttributeValueMap extends \SimpleSAML\Auth\ProcessingFilter
} }
// now validate it // now validate it
if (!empty($this->sourceattribute)) { if (empty($this->sourceattribute)) {
throw new Error\Exception("AttributeValueMap: 'sourceattribute' configuration option not set."); 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."); throw new Error\Exception("AttributeValueMap: 'targetattribute' configuration option not set.");
} }
if (!is_array($this->values)) { if (!is_array($this->values)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment