diff --git a/metatag.module b/metatag.module index 9b864c8..02e5bf7 100644 --- a/metatag.module +++ b/metatag.module @@ -507,7 +507,7 @@ function metatag_metatags_save($entity_type, $entity_id, $revision_id, $metatags foreach ($metatags as $key => $val) { // Meta tag names will not match LANGUAGE_NONE nor will they exist in the // list of enabled languages, whereas country codes will. - if ($key == LANGUAGE_NONE || isset($languages[$key])) { + if ($key == LANGUAGE_NONE || in_array($key, $languages)) { $lang_nested = TRUE; } }