noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 07/09: Comptability PHP8.1


From: dwm
Subject: [Noalyss-commit] [noalyss] 07/09: Comptability PHP8.1
Date: Sun, 17 Sep 2023 15:06:13 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3d8265f89fc8223304fa743ac5757a87f5076dab
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Sep 15 19:15:32 2023 +0200

    Comptability PHP8.1
    
    remove deprecated null string
---
 include/lib/pdf_core.class.php           | 4 ++--
 include/template/stock_histo.php         | 4 ++--
 include/template/stock_summary_table.php | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index d46355f3c..3b4563889 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -264,7 +264,7 @@ class PDF_Core extends TFPDF
             $this->bigger=0;
     }
     /**
-     * If the step is even then return 1 and set the backgroup color to blue , 
otherwise
+     * @brief If the step is even then return 1 and set the backgroup color to 
blue , otherwise
      * returns 0, and set the background color to white
      * It is use to compute alternated  colored row , it the parameter fill in 
write_cell and 
      * cell
@@ -281,7 +281,7 @@ class PDF_Core extends TFPDF
             $this->SetFillColor(255, 255, 255);
             $fill = 0;
         }
-        return $p_step;
+        return $fill;
     }
 
 
diff --git a/include/template/stock_histo.php b/include/template/stock_histo.php
index bdb496de5..2c61a5a10 100644
--- a/include/template/stock_histo.php
+++ b/include/template/stock_histo.php
@@ -59,12 +59,12 @@
                        <?php echo $row['r_name']?>
                </td>
                <td>
-                       <?php if (trim($row['qcode'])!='') : ?>
+                       <?php if (trim($row['qcode']??"")!='') : ?>
                        <?php echo 
HtmlInput::card_detail($row['qcode'],$row['fname'],' class="line" ')?>
                        <?php endif; ?>
                </td>
                <td>
-                       <?php if (trim($row['jr_internal'])!='') : ?>
+                       <?php if (trim($row['jr_internal']??"")!='') : ?>
                        <?php echo 
HtmlInput::detail_op($row['jr_id'],$row['jr_internal'])?>
                        <?php endif; ?>
                </td>
diff --git a/include/template/stock_summary_table.php 
b/include/template/stock_summary_table.php
index 485bd74dc..a191be1da 100644
--- a/include/template/stock_summary_table.php
+++ b/include/template/stock_summary_table.php
@@ -89,7 +89,7 @@
                                                                        <?php 
echo _("DIFF")?>  :
                                                                </td>
                                                                <td class="num">
-                                                                       <?php 
echo nbm((bcsub($array[0]['s_qin'],$array[0]['s_qout'])))?>
+                                                                       <?php 
echo nbm((bcsub($array[0]['s_qin']??0,$array[0]['s_qout']??0)))?>
                                                                </td>
                                                        </tr>
                                                </table>



reply via email to

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