Minor fix for body_text_color

This commit is contained in:
FusionPBX 2023-07-06 14:18:32 -06:00 committed by GitHub
parent 656e077d40
commit ddcd2c6d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@
$contact_attachments = [];
//set from session variables
$body_text_color = !empty($_SESSION['theme']['body_text_color']) ? $_SESSION['theme']['body_text_color'] : 'false';
$body_text_color = !empty($_SESSION['theme']['body_text_color']['text']) ? $_SESSION['theme']['body_text_color']['text'] : 'false';
//action add or update
if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) {
@ -1642,6 +1642,7 @@ if (permission_exists('contact_phone_view')) {
$call .= "&ringback=us-ring";
$call .= "&auto_answer=true";
$call .= "');";
echo " <a href='' onclick=\"".$call."\">\n";
echo " <i class='fas fa-phone fa-fw' style='color: ".$body_text_color."; float: left; margin-top: 7px; margin-left: 7px;' title=\"".urlencode($row['phone_number'] ?? '')."\"></i>\n";
echo " </a>\n";