From 087a18c4dd01b1268bedfc771064bcec2f36c5f0 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 15 Nov 2020 21:05:57 +0100 Subject: [PATCH] Bugfix --- chat.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/chat.php b/chat.php index e9622dc..df21858 100644 --- a/chat.php +++ b/chat.php @@ -317,16 +317,18 @@ function credit() : string { } function meta_html() : string { - global $db; - $colbg='000000'; + global $U, $db; + $colbg = '000000'; + $description = ''; if(!empty($U['bgcolour'])){ - $colbg=$U['bgcolour']; + $colbg = $U['bgcolour']; }else{ if($db instanceof PDO){ - $colbg=get_setting('colbg'); + $colbg = get_setting('colbg'); + $description = ''; } } - return ''; + return '' . $description; } function form(string $action, string $do='') : string {