Bug #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0

This commit is contained in:
sparkyx 2023-02-01 16:49:24 +01:00
parent 1c7f0086a6
commit 21b1cb3d84
36 changed files with 103 additions and 100 deletions

View file

@ -77,7 +77,7 @@ class Pre_op_ven extends Pre_operation_detail
$this->db->exec_sql($sql);
for ($i=0;$i<$p_nb_item;$i++)
{
if ( strlen(trim($this->{"e_march".$i}))== 0 ) continue;
if ( noalyss_strlentrim($this->{"e_march".$i})== 0 ) continue;
$sql= 'insert into op_predef_detail (opd_poste,'
. 'opd_amount,'
. 'opd_tva_id,'
@ -211,7 +211,7 @@ class Pre_op_ven extends Pre_operation_detail
// retrieve e_client_label
//--
if ( strlen(trim($e_client)) != 0)
if ( noalyss_strlentrim($e_client) != 0)
{
$fClient=new Fiche($ledger->db);
$fClient->get_by_qcode($e_client);
@ -279,7 +279,7 @@ class Pre_op_ven extends Pre_operation_detail
// retrieve the tva label and name
//--
if ( strlen(trim($march))!=0 && strlen(trim($march_label))==0)
if ( noalyss_strlentrim($march)!=0 && noalyss_strlentrim($march_label)==0)
{
$fMarch=new Fiche($ledger->db);
$fMarch->get_by_qcode($march);