From a03423794a1a9dc15588d40684fee3bf9a57b629 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Fri, 14 May 2021 08:56:06 +0000 Subject: Random PHP 8 fixes --- include/channel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/channel.php') 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'] .= '' . "\r\n" ; + } } App::$profile = $p[0]; -- cgit v1.2.3