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/channel.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/channel.php')
-rw-r--r-- | include/channel.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php index 31c7c407f..e636a22d6 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1516,8 +1516,11 @@ function profile_load($nickname, $profile = '') { if($p[0]['keywords']) { $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$p[0]['keywords']); - if(strlen($keywords) && $can_view_profile) + if(strlen($keywords) && $can_view_profile) { + if(! isset(App::$page['htmlhead'])) + App::$page['htmlhead'] = ''; App::$page['htmlhead'] .= '<meta name="keywords" content="' . htmlentities($keywords,ENT_COMPAT,'UTF-8') . '" />' . "\r\n" ; + } } App::$profile = $p[0]; |