mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
=== instead of == for comparing with true
This commit is contained in:
parent
bf1009091b
commit
a4908befe4
|
@ -50,7 +50,7 @@ class AbuseFilterHooks {
|
|||
|
||||
$error = $filter_result;
|
||||
|
||||
return $filter_result == '' || $filter_result == true;
|
||||
return $filter_result == '' || $filter_result === true;
|
||||
}
|
||||
|
||||
function onArticleDelete( &$article, &$user, &$reason, &$error ) {
|
||||
|
@ -66,7 +66,7 @@ class AbuseFilterHooks {
|
|||
|
||||
$error = $filter_result;
|
||||
|
||||
return $filter_result == '' || $filter_result == true;
|
||||
return $filter_result == '' || $filter_result === true;
|
||||
}
|
||||
|
||||
function onAbortNewAccount( $username, &$message ) {
|
||||
|
@ -79,6 +79,6 @@ class AbuseFilterHooks {
|
|||
|
||||
$message = $filter_result;
|
||||
|
||||
return $filter_result == '' || $filter_result == true;
|
||||
return $filter_result == '' || $filter_result === true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue