Commit 8fd5009e authored by Narendra Rajwar's avatar Narendra Rajwar Committed by jyoti
Browse files

Issue #3159747 by narendra.rajwar27, RdeBoer, duozersk, Promo-IL, nehajyoti:...

Issue #3159747 by narendra.rajwar27, RdeBoer, duozersk, Promo-IL, nehajyoti: Warning: Invalid argument supplied for foreach() in copyprevention_preprocess_html()
parent 7b9b6c3f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ class CopypreventionSettingsForm extends ConfigFormBase {
        'copy' => $this->t('Disable copy to clipboard: oncopy="return false;"'),
        'contextmenu' => $this->t('Disable right-click context menu: oncontextmenu="return false;"'),
      ],
      '#default_value' => $this->config->get('copyprevention_body'),
      '#default_value' => $this->config->get('copyprevention_body') ?: [],
    ];
    $form['images'] = [
      '#type' => 'details',
@@ -79,7 +79,7 @@ class CopypreventionSettingsForm extends ConfigFormBase {
        'contextmenu' => $this->t('Disable right-click context menu on images: oncontextmenu="return false;"'),
        'transparentgif' => $this->t('Place transparent gif image above all images'),
      ],
      '#default_value' => $this->config->get('copyprevention_images'),
      '#default_value' => $this->config->get('copyprevention_images') ?: [],
    ];
    $form['images']['copyprevention_images_min_dimension'] = [
      '#type' => 'select',