mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 02:38:16 +00:00
If no groups are being removed, then don't add a LogPage entry for the 'degroup' action!
This commit is contained in:
parent
9ee1f5e267
commit
4adfc225f1
|
@ -390,6 +390,11 @@ class AbuseFilter {
|
|||
|
||||
$display .= wfMsgNoTrans( 'abusefilter-degrouped', $rule_desc ) ."<br />\n";
|
||||
|
||||
// Don't log it if there aren't any groups being removed!
|
||||
if (!count($groups)) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Log it.
|
||||
$log = new LogPage( 'rights' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue