From 5760b88599370319387857784fba48178043bcd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Rufer?=
<6923504+aw73@users.noreply.github.com>
Date: Tue, 23 Jan 2018 18:02:19 +0100
Subject: [PATCH] Don't generate tag if no value
For example if not fill the keyword field, then no meta keywords tag will be generated in template
---
MarkupSEO.module | 1 +
1 file changed, 1 insertion(+)
diff --git a/MarkupSEO.module b/MarkupSEO.module
index 8b19dab..80d4eaa 100644
--- a/MarkupSEO.module
+++ b/MarkupSEO.module
@@ -372,6 +372,7 @@ class MarkupSEO extends WireData implements Module, ConfigurableModule {
$rendered .= ''.PHP_EOL;
break;
default:
+ if ($content == '') break;
if (strstr($name, 'og:')) {
$rendered .= ''.PHP_EOL;
} else {