Filter empty edit notices

Bug: T265798
Change-Id: I10bc181b66288f89775566e1b06ae1e508484724
This commit is contained in:
Ed Sanders 2020-10-17 16:31:27 +01:00
parent 0a6ccea046
commit 98a1c203c1

View file

@ -471,6 +471,10 @@ class ApiVisualEditor extends ApiBase {
// Don't convert the boolean to empty string with formatversion=1
$value[ApiResult::META_BC_BOOLS] = [ 'default' ];
}
// Remove empty notices (T265798)
$notices = array_filter( $notices );
$result = [
'result' => 'success',
'notices' => $notices,