diff options
author | Max Kostikov <max@kostikov.co> | 2021-05-14 08:56:06 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-05-14 08:56:06 +0000 |
commit | a03423794a1a9dc15588d40684fee3bf9a57b629 (patch) | |
tree | 072ef73577b3ecefcc85f26c7db41166ffbd3d49 /include/opengraph.php | |
parent | f085c3c98f834bc4e3906c456f1447de2e955118 (diff) | |
download | volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.gz volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.bz2 volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.zip |
Random PHP 8 fixes
Diffstat (limited to 'include/opengraph.php')
-rw-r--r-- | include/opengraph.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opengraph.php b/include/opengraph.php index 4c88570d3..465acbd39 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -62,6 +62,8 @@ $ogimagetype = $channel['xchan_photo_mimetype']; } + if (! isset(App::$page['htmlhead'])) + App::$page['htmlhead'] = ''; App::$page['htmlhead'] .= '<meta property="og:title" content="' . htmlspecialchars((isset($ogtitle) ? $ogtitle : $channel['channel_name'])) . '">' . "\r\n"; App::$page['htmlhead'] .= '<meta property="og:image" content="' . $ogimage . '">' . "\r\n"; App::$page['htmlhead'] .= '<meta property="og:image:type" content="' . $ogimagetype . '">' . "\r\n"; |