mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "fix php notices"
This commit is contained in:
commit
d2568a7d43
|
@ -1663,7 +1663,7 @@ class AbuseFilter {
|
|||
list( $row2, $actions2 ) = $version_2;
|
||||
|
||||
foreach ( $compareFields as $field ) {
|
||||
if ( $row1->$field != $row2->$field ) {
|
||||
if ( !isset( $row2->$field ) || $row1->$field != $row2->$field ) {
|
||||
$differences[] = $field;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -344,7 +344,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
'default'
|
||||
);
|
||||
|
||||
if ( $row->af_group ) {
|
||||
if ( isset( $row->af_group ) && $row->af_group ) {
|
||||
$groupSelector->setDefault($row->af_group);
|
||||
}
|
||||
|
||||
|
@ -633,7 +633,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$warnMsg = $parameters[0];
|
||||
} elseif (
|
||||
$row &&
|
||||
$row->af_group &&
|
||||
isset( $row->af_group ) && $row->af_group &&
|
||||
isset($wgAbuseFilterDefaultWarningMessage[$row->af_group] )
|
||||
) {
|
||||
$warnMsg = $wgAbuseFilterDefaultWarningMessage[$row->af_group];
|
||||
|
|
Loading…
Reference in a new issue