Bugfix: Sabre $this->value already an area

This commit is contained in:
the-djmaze 2022-05-20 16:39:01 +02:00
parent 656c5f2a3e
commit 05f02c2197

View file

@ -335,7 +335,7 @@ class Parameter extends Node
*/
public function xmlSerialize(Xml\Writer $writer)
{
foreach (explode(',', $this->value) as $value) {
foreach (is_array($this->value) ? $this->value : explode(',', $this->value) as $value) {
$writer->writeElement('text', $value);
}
}