Fix Undefined offset: 0

This commit is contained in:
Daniel Kesselberg 2019-11-03 15:36:34 +01:00
commit f9b08747fc
3 changed files with 66 additions and 1 deletions

View file

@ -68,7 +68,7 @@ class Operator implements XmlDeserializable {
if ($reader->nodeType === Reader::ELEMENT) {
$argument = $reader->parseCurrentElement();
if ($argument['name'] === '{DAV:}prop') {
$operator->arguments[] = $argument['value'][0];
$operator->arguments[] = $argument['value'][0] ?? '';
} else {
$operator->arguments[] = $argument['value'];
}