Commit e807dc86 authored by Damien McKenna's avatar Damien McKenna Committed by Damien McKenna
Browse files

Issue #3312950 by DamienMcKenna, nkraft: Warning: Undefined array key "href"...

Issue #3312950 by DamienMcKenna, nkraft: Warning: Undefined array key "href" in Drupal\metatag_favicons\Plugin\metatag\Tag\MaskIcon->output().
parent e3f99372
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Metatag 8.x-1.x-dev, 2022-xx-xx
-------------------------------
#3312950 by DamienMcKenna, nkraft: Warning: Undefined array key "href" in
  Drupal\metatag_favicons\Plugin\metatag\Tag\MaskIcon->output().


Metatag 8.x-1.22, 2022-09-29
+15 −14
Original line number Diff line number Diff line
@@ -77,9 +77,9 @@ class MaskIcon extends LinkRelBase {
    }

    // Build the output.
    if (!empty($values['href'])) {
      $href = $this->tidy($values['href']);
      if ($href != '') {
      $this->tidy($values['href']);
        $element['#tag'] = 'link';
        $element['#attributes'] = [
          'rel' => $this->name(),
@@ -93,6 +93,7 @@ class MaskIcon extends LinkRelBase {

        return $element;
      }
    }

    return '';
  }