mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-09 02:43:34 +00:00
Remove array slice reference on method return value.
Eclipse complained about the syntax, and since it was the only complaint it had I thought it worth dealing with :-)
This commit is contained in:
parent
9f180c9b8f
commit
aafd81ffd7
@ -54,7 +54,8 @@ if ( count($qry_filters) == 0 ) {
|
||||
$qry_limit = -1; // everything
|
||||
$qry_filters_combination='OR';
|
||||
if ( is_array($qry_filters) ) {
|
||||
$filters_parent = $xmltree->GetPath('/urn:ietf:params:xml:ns:carddav:addressbook-query/urn:ietf:params:xml:ns:carddav:filter')[0];
|
||||
$filters_parent = $xmltree->GetPath('/urn:ietf:params:xml:ns:carddav:addressbook-query/urn:ietf:params:xml:ns:carddav:filter');
|
||||
$filters_parent = $filters_parent[0];
|
||||
// only anyof (OR) or allof (AND) allowed, if missing anyof is default (RFC6352 10.5)
|
||||
if ( $filters_parent->GetAttribute("test") == 'allof' ) {
|
||||
$qry_filters_combination='AND';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user