Fix logic inversion on test_pre_sql_conditions
parent
4d31089707
commit
c937169a6b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue