diff --git a/inc/caldav-REPORT-cardquery.php b/inc/caldav-REPORT-cardquery.php index b629cecf..f85a9d56 100644 --- a/inc/caldav-REPORT-cardquery.php +++ b/inc/caldav-REPORT-cardquery.php @@ -163,7 +163,7 @@ function SqlFilterCardDAV( $filter, $components, $property = null, $parameter = $params[$pname] = $search; $negate = $filter->GetAttribute("negate-condition"); - $negate = ( (isset($negate) && strtolower($negate) ) == "yes" ) ? "NOT " : ""; + $negate = ( isset($negate) && strtolower($negate) == "yes" ) ? "NOT " : ""; dbg_error_log("cardquery", " text-match: (%s%s %s '%s') ", $negate, $property, $comparison, $search ); $sql .= sprintf( "(%s%s %s $pname)", $negate, $property, $comparison ); break;