ExtensibleSet: check for empty array

refs #906
This commit is contained in:
Thomas Gelf 2017-04-21 15:11:18 +02:00
parent ddcaaa7bcf
commit a63135be2a
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,10 @@ class ExtensibleSet
); );
} }
if (empty($this->allowedValues)) {
return array();
}
return array_combine($this->allowedValues, $this->allowedValues); return array_combine($this->allowedValues, $this->allowedValues);
} }