Card search invalid when negate-condition="no"
When performing a search with negate-condition="no", DAViCal will return inverted results. The problem is in inc/caldav-REPORT-cardquery.php on line 166.
An extra () is making the comparison invalid. Current line:
$negate = ( (isset($negate) && strtolower($negate) ) == "yes" ) ? "NOT " : "";
Should be:
$negate = ( isset($negate) && strtolower($negate) == "yes" ) ? "NOT " : "";
On my server this correction has resolved the issue.