fix descending sort order

This commit is contained in:
Robin Appelman 2017-03-15 14:20:33 +01:00
commit 3071937c64
3 changed files with 58 additions and 1 deletions

View file

@ -58,7 +58,7 @@ class Order implements XmlDeserializable {
$childs = \Sabre\Xml\Deserializer\keyValue($reader);
$order->order = isset($childs['{DAV:}descending']) ? self::DESC : self::ASC;
$order->order = array_key_exists('{DAV:}descending', $childs) ? self::DESC : self::ASC;
$order->property = $childs['{DAV:}prop'][0];
return $order;