Change default background color in PDF + PHP8.1 compatibility

This commit is contained in:
sparkyx 2023-07-01 11:57:18 +02:00
parent 71f962fd80
commit b281a90f87
3 changed files with 6 additions and 6 deletions

View file

@ -1110,9 +1110,9 @@ function show_menu($module)
{
// there is only one submenu so we include the code or javascript
// or we show the submenu
if ( trim($amenu[0]['me_url']) != "" ||
trim ($amenu[0]['me_file']) != "" ||
trim ($amenu[0]['me_javascript']) != "" )
if ( trim($amenu[0]['me_url']??"") != "" ||
trim ($amenu[0]['me_file']??"") != "" ||
trim ($amenu[0]['me_javascript']??"") != "" )
{
echo '<div class="topmenu">';
echo h2info(_($amenu[0]['me_menu']));

View file

@ -233,10 +233,10 @@ var $css_size;
if ( DEBUGNOALYSS > 2) {
return '<span style="font-size:80%;color:blue;background-color:lightgoldenrodyellow">'.
$p_id .
'= <INPUT TYPE="text" id="'.strip_tags($p_id).'" NAME="'.$p_name.'" VALUE="'.strip_tags($p_value).'" style="color:blue;font-size:80%">'.
'= <INPUT TYPE="text" id="'.strip_tags($p_id).'" NAME="'.$p_name.'" VALUE="'.strip_tags($p_value??"").'" style="color:blue;font-size:80%">'.
'</span>';
}else
return '<INPUT TYPE="hidden" id="'.strip_tags($p_id).'" NAME="'.$p_name.'" VALUE="'.strip_tags($p_value).'">';
return '<INPUT TYPE="hidden" id="'.strip_tags($p_id).'" NAME="'.$p_name.'" VALUE="'.strip_tags($p_value??"").'">';
}
static function extension()

View file

@ -275,7 +275,7 @@ class PDF_Core extends TFPDF
function is_fill($p_step)
{
if ($p_step % 2 == 0) {
$this->SetFillColor(220, 221, 255);
$this->SetFillColor(239, 239, 255);
$fill = 1;
} else {
$this->SetFillColor(255, 255, 255);