bgmgmbh / extension-bgm_hreflang

A TYPO3 extension to add hreflang meta tags: <link rel="alternate" hreflang="" href="" />
4 stars 12 forks source link

Defining additionalCountries for translated pages leads to php error #8

Open nicolez9911 opened 4 years ago

nicolez9911 commented 4 years ago

When I define additional countries for a page thats only available in the default language, everything is fine. But if the page is translated, an error occurs: PHP Warning: Illegal offset type in isset or empty in .../HreflangTags.php line 477

The error might be that $translation is an array on line 477. Just above, there is a similar foreach loop where $translation is redefined (L. 453-455).