summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML
diff options
context:
space:
mode:
authorTyler Antonio <tantonio@ualberta.ca>2016-11-09 14:36:21 -0700
committerTyler Antonio <tantonio@ualberta.ca>2016-11-09 14:36:21 -0700
commit6e3322250a412f6b24538c59e3d8d42091e6df5c (patch)
tree6913a16e7932f85b43a561ccb28a720d02e08e4d /lib/SimpleSAML
parent32063a86a57888a44fd4c0f915a9045b3d0cc4b5 (diff)
downloadsimplesamlphp-6e3322250a412f6b24538c59e3d8d42091e6df5c.zip
simplesamlphp-6e3322250a412f6b24538c59e3d8d42091e6df5c.tar.gz
simplesamlphp-6e3322250a412f6b24538c59e3d8d42091e6df5c.tar.bz2
Address issues from unit tests
Diffstat (limited to 'lib/SimpleSAML')
-rw-r--r--lib/SimpleSAML/Utils/Config/Metadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Utils/Config/Metadata.php b/lib/SimpleSAML/Utils/Config/Metadata.php
index 8232e2d..297cae3 100644
--- a/lib/SimpleSAML/Utils/Config/Metadata.php
+++ b/lib/SimpleSAML/Utils/Config/Metadata.php
@@ -117,7 +117,7 @@ class Metadata
// check attributes is an associative array
if (isset($contact['attributes'])) {
- if (empty($contact['attributes']) || empty(array_filter(array_keys($contact['attributes']), 'is_string'))) {
+ if (empty($contact['attributes']) || !is_array($contact['attributes']) || empty(array_filter(array_keys($contact['attributes']), 'is_string'))) {
throw new \InvalidArgumentException('"attributes" must be an array and cannot be empty.');
}
}