mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +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'
|
||||
];
|
||||
|
||||
if ( isset( $params['section'] ) ) {
|
||||
$section = $params['section'];
|
||||
}
|
||||
$section = isset( $params['section'] ) ? $params['section'] : null;
|
||||
|
||||
if ( $section === 'new' ) {
|
||||
$content = '';
|
||||
|
|
Loading…
Reference in a new issue