From 4324d5b607c9ab1306deacc54aecc51e75d1403e Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Thu, 4 Aug 2016 16:32:17 +1200 Subject: [PATCH] Output extra meta tags only when there are any existing translations --- code/model/Translatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index c52e607..310e982 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1574,7 +1574,7 @@ class Translatable extends DataExtension implements PermissionProvider { function MetaTags(&$tags) { $template = '' . "\n"; $translations = $this->owner->getTranslations(); - if($translations) { + if($translations->count()) { $translations = $translations->toArray(); $translations[] = $this->owner;