20after4 has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/353181 )
Change subject: Do not error out when threshold can't be found ...................................................................... Do not error out when threshold can't be found Bug: T164984 Change-Id: I1499acd1e4d4814fbf9c86416476cb24f6ff4c8e --- M includes/Hooks.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES refs/changes/81/353181/1 diff --git a/includes/Hooks.php b/includes/Hooks.php index c716bfc..295b9bf 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -539,8 +539,8 @@ return; } - // Doesn't have ores score, skipping. - if ( !isset( $row->ores_damaging_score ) ) { + // Doesn't have ores score or threshold is not set properly, skipping. + if ( !isset( $row->ores_damaging_score ) || !isset( $row->ores_damaging_threshold ) ) { return; } -- To view, visit https://gerrit.wikimedia.org/r/353181 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1499acd1e4d4814fbf9c86416476cb24f6ff4c8e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ORES Gerrit-Branch: wmf/1.30.0-wmf.1 Gerrit-Owner: 20after4 <mmod...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits