Fix logic inversion on test_pre_sql_conditions

pull/3544/head
Isaac Connor 2022-07-29 13:50:40 -04:00
parent 4d31089707
commit c937169a6b
1 changed files with 2 additions and 4 deletions

View File

@ -315,14 +315,12 @@ class Filter extends ZM_Object {
return true;
} # end if pre_sql_conditions
$failed = false;
foreach ( $this->pre_sql_conditions() as $term ) {
if ( !$term->test() ) {
$failed = true;
break;
return false;
}
}
return $failed;
return true;
}
public function test_post_sql_conditions($event) {