Fix MWException from AbuseFilterView

The case default was recently added, but didn't take into account that
"false" is valid too. Noticed by chance just before the train rolled
out.

Change-Id: I67ca475fa16ea449820f8c735531c2cc1b0ec975
This commit is contained in:
Daimona Eaytoy 2019-01-24 21:48:50 +01:00
parent ba1b27d7f6
commit 8f9b27d856

View file

@ -286,6 +286,9 @@ abstract class AbuseFilterView extends ContextSource {
'rc_log_type' => 'delete',
'rc_log_action' => 'delete'
], LIST_AND );
case false:
// Done later
break;
// @ToDo: case 'upload'
default:
throw new MWException( __METHOD__ . ' called with invalid action: ' . $action );