mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fix another annoying bug
This commit is contained in:
parent
33a83c67a2
commit
12f62fdea4
|
@ -518,7 +518,7 @@ class AbuseFilterParser {
|
|||
$this->move();
|
||||
$r2 = new AFPData();
|
||||
|
||||
if ($op == '&' && !($result->toBool())) {
|
||||
if ( $op == '&' && !( $result->toBool() ) ) {
|
||||
wfProfileIn( __METHOD__.'-shortcircuit' );
|
||||
$orig = $this->mShortCircuit;
|
||||
$this->mShortCircuit = true;
|
||||
|
@ -526,10 +526,10 @@ class AbuseFilterParser {
|
|||
$this->mShortCircuit = $orig;
|
||||
$result = new AFPData( AFPData::DBool, false );
|
||||
wfProfileOut( __METHOD__.'-shortcircuit' );
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($op == '|' && ($result->toBool())) {
|
||||
if ( $op == '|' && $result->toBool() ) {
|
||||
wfProfileIn( __METHOD__.'-shortcircuit' );
|
||||
$orig = $this->mShortCircuit;
|
||||
$this->mShortCircuit = true;
|
||||
|
@ -537,7 +537,7 @@ class AbuseFilterParser {
|
|||
$this->mShortCircuit = $orig;
|
||||
$result = new AFPData( AFPData::DBool, true );
|
||||
wfProfileOut( __METHOD__.'-shortcircuit' );
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->doLevelCompares( $r2 );
|
||||
|
|
Loading…
Reference in a new issue