Merge "Don't allow $section to be unset"

This commit is contained in:
jenkins-bot 2017-01-03 18:57:46 +00:00 committed by Gerrit Code Review
commit 8723481005

View file

@ -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 = '';