Merge pull request #8 from kesselb/fix/undefined-index

Prevent "Undefined index: 0" for where condition
This commit is contained in:
Robin Appelman 2019-11-04 10:09:57 +00:00 committed by GitHub
commit a469e21c43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 1 deletions

View file

@ -76,7 +76,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'];
}