Skip to content
Snippets Groups Projects

Checked if the status key exists before accessing

Open Gaurav requested to merge issue/drupal-3457717:3457717-undefined-array-key into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -106,7 +106,7 @@ function editor_form_filter_admin_format_submit($form, FormStateInterface $form_
// @see editor.image_upload_settings.1
// @see editor.schema.yml
$image_upload_settings = $editor->getImageUploadSettings();
if (!$image_upload_settings['status']) {
if (isset($image_upload_settings['status']) && !$image_upload_settings['status']) {
$editor->setImageUploadSettings(['status' => FALSE]);
}
$editor->save();
Loading