mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-04 01:54:07 +02:00
minor fixes
This commit is contained in:
parent
d3eb42cd90
commit
acb32ab84d
15 changed files with 60 additions and 47 deletions
|
|
@ -24,6 +24,7 @@ namespace SearchDAV\XML;
|
|||
use Sabre\Xml\Reader;
|
||||
use Sabre\Xml\XmlDeserializable;
|
||||
use SearchDAV\DAV\SearchPlugin;
|
||||
use function Sabre\Xml\Deserializer\keyValue;
|
||||
|
||||
/**
|
||||
* The limit and offset of a search query
|
||||
|
|
@ -32,7 +33,7 @@ class Limit extends \SearchDAV\Query\Limit implements XmlDeserializable {
|
|||
public static function xmlDeserialize(Reader $reader): Limit {
|
||||
$limit = new self();
|
||||
|
||||
$elements = \Sabre\Xml\Deserializer\keyValue($reader);
|
||||
$elements = keyValue($reader);
|
||||
$namespace = SearchPlugin::SEARCHDAV_NS;
|
||||
|
||||
$limit->maxResults = isset($elements['{DAV:}nresults']) ? $elements['{DAV:}nresults'] : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue