[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>
- [Noalyss-commit] [noalyss] branch master updated (b77ac34d8 -> 4bf2ca815), dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 07/09: Comptability PHP8.1,
dwm <=
- [Noalyss-commit] [noalyss] 01/09: PHP8.1 deprecated, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 05/09: Default currency, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 06/09: correct global g_parameter, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 02/09: compatibility PHP8.1, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 08/09: Remove dead code, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 03/09: Bug cannot update description in FOLLOW->event, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 04/09: Merge branch 'patch-230902', dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 09/09: task #2297: Suppression $_REQUEST dossier.class.php, dwm, 2023/09/17