If no groups are being removed, then don't add a LogPage entry for the 'degroup' action!

This commit is contained in:
Andrew Garrett 2009-01-26 18:52:41 +00:00
parent 9ee1f5e267
commit 4adfc225f1

View file

@ -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' );