mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
support parsing empty operators
This commit is contained in:
parent
afad148a4f
commit
c167b43739
1 changed files with 2 additions and 3 deletions
|
|
@ -73,12 +73,11 @@ class Operator implements XmlDeserializable {
|
||||||
static function xmlDeserialize(Reader $reader) {
|
static function xmlDeserialize(Reader $reader) {
|
||||||
$operator = new self();
|
$operator = new self();
|
||||||
|
|
||||||
// If there's no children, we don't do anything.
|
$operator->type = $reader->getClark();
|
||||||
if ($reader->isEmptyElement) {
|
if ($reader->isEmptyElement) {
|
||||||
$reader->next();
|
$reader->next();
|
||||||
return null;
|
return $operator;
|
||||||
}
|
}
|
||||||
$operator->type = $reader->getClark();
|
|
||||||
$reader->read();
|
$reader->read();
|
||||||
do {
|
do {
|
||||||
if ($reader->nodeType === Reader::ELEMENT) {
|
if ($reader->nodeType === Reader::ELEMENT) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue