From ae3ca8aa2dfcfa226803a9f29b0bf99a8e4fb665 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 29 Jan 2016 10:26:27 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=B1=20Fixed=20missing=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/src/Grav/Common/Page/Page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 810264830..33c5a9e2c 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1248,7 +1248,6 @@ class Page $prop_key = $key . ":" . $property; $this->metadata[$prop_key] = ['name' => $prop_key, 'property' => $prop_key, 'content' => htmlspecialchars($prop_value, ENT_QUOTES)]; } - // If it this is a standard meta data type } else { // If it this is a standard meta data type if ($value) { @@ -1256,7 +1255,8 @@ class Page $this->metadata[$key] = ['http_equiv' => $key, 'content' => htmlspecialchars($value, ENT_QUOTES)]; } else { // if it's a social metadata with separator, render as property - $hasSeparator = strpos($key, ':') && $separator < strlen($key) - 1; + $separator = strpos($key, ':'); + $hasSeparator = $separator && $separator < strlen($key) - 1; $entry = ['name' => $key, 'content' => htmlspecialchars($value, ENT_QUOTES)]; if ($hasSeparator) {