mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
Merge pull request #8 from kesselb/fix/undefined-index
Prevent "Undefined index: 0" for where condition
This commit is contained in:
commit
a469e21c43
3 changed files with 66 additions and 1 deletions
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue