Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / metatag / metatag_favicons / metatag_favicons.module
index fe5c71dc3aa18c1a23338c8b012844ffd3254632..39a0b19eea182e070995dca73b3bc432767a40d7 100644 (file)
@@ -33,7 +33,7 @@ function metatag_favicons_page_attachments_alter(array &$attachments) {
   }
 
   // Remove the default shortcut icon if one was set by Metatag.
-  foreach ($attachments['#attached']['html_head'] as $position => $element) {
+  foreach ($attachments['#attached']['html_head'] as $element) {
     if (isset($element[1]) && $element[1] == 'shortcut_icon') {
       foreach ($attachments['#attached']['html_head_link'] as $key => $value) {
         if (isset($value[0]['rel']) && $value[0]['rel'] == 'shortcut icon') {