[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 07/07: Bug , incompatibility php7
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 07/07: Bug , incompatibility php7 |
Date: |
Thu, 2 Dec 2021 11:45:05 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 4d661f1924d2d91c30492d4d730bea78271c1cb2
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Dec 2 17:44:10 2021 +0100
Bug , incompatibility php7
---
include/class/acc_tva.class.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/class/acc_tva.class.php b/include/class/acc_tva.class.php
index 17ee87f..421544e 100644
--- a/include/class/acc_tva.class.php
+++ b/include/class/acc_tva.class.php
@@ -134,7 +134,7 @@ class Acc_Tva
*/
public function load()
{
- $sql="select tva_id,tva_label,tva_rate,
tva_comment,tva_poste,tva_both_side from tva_rate where tva_id=$1";
+ $sql="select * from tva_rate where tva_id=$1";
$res=$this->cn->exec_sql(
$sql,
array($this->tva_id)
@@ -143,9 +143,9 @@ class Acc_Tva
if ( $this->cn->size() == 0 ) return -1;
$row=Database::fetch_array($res,0);
- foreach ($row as $idx=>$value)
+ foreach (self::$variable as $idx)
{
- $this->$idx=$value;
+ $this->$idx=$row[$idx];
}
return 0;
}
- [Noalyss-commit] [noalyss] branch devel updated (d3afe85 -> 4d661f1), Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 01/07: TOOLS : checkbox range, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 05/07: Fix doc, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 02/07: Task #2094: Menu : confusion entre catégorie et modèle, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 06/07: Task #0002101: Exercice : pouvoir donner un texte libre, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 03/07: add symbol for operation : history card & accounting, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 04/07: Task #2092 : select range, Dany De Bontridder, 2021/12/02
- [Noalyss-commit] [noalyss] 07/07: Bug , incompatibility php7,
Dany De Bontridder <=