mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Merge "Don't allow $section to be unset"
This commit is contained in:
commit
8723481005
|
@ -241,9 +241,7 @@ class ApiVisualEditor extends ApiBase {
|
||||||
'rvprop' => 'content|ids'
|
'rvprop' => 'content|ids'
|
||||||
];
|
];
|
||||||
|
|
||||||
if ( isset( $params['section'] ) ) {
|
$section = isset( $params['section'] ) ? $params['section'] : null;
|
||||||
$section = $params['section'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $section === 'new' ) {
|
if ( $section === 'new' ) {
|
||||||
$content = '';
|
$content = '';
|
||||||
|
|
Loading…
Reference in a new issue