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:
Andrew McMillan 2016-06-22 23:24:44 +01:00
parent 9f180c9b8f
commit aafd81ffd7

View File

@ -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';