noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/08: Change default background color in PDF


From: dwm
Subject: [Noalyss-commit] [noalyss] 06/08: Change default background color in PDF + PHP8.1 compatibility
Date: Sat, 1 Jul 2023 11:09:08 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit b281a90f873e6b5a18e48dd71b0cc73e95b87c25
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Jul 1 11:57:18 2023 +0200

    Change default background color in PDF + PHP8.1 compatibility
---
 include/lib/ac_common.php        | 6 +++---
 include/lib/html_input.class.php | 4 ++--
 include/lib/pdf_core.class.php   | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index cf52df5e6..49a312fd3 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -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']));
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 94f2d0ed3..9ea2e3b1d 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -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()
diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index 8c1f4b850..d46355f3c 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]