[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 81/218: adapt to 7.2 , error with sizeof
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 81/218: adapt to 7.2 , error with sizeof |
Date: |
Thu, 12 Sep 2019 15:58:45 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 7c74247408dbb0fae3e8997259a86145d1cd24af
Author: Dany De Bontridder <address@hidden>
Date: Sat Oct 20 09:20:44 2018 +0200
adapt to 7.2 ,error with sizeof
---
include/class/fiche.class.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index a989727..00d1a00 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -57,6 +57,8 @@ class Fiche
$this->cn=$p_cn;
$this->id=$p_id;
$this->quick_code='';
+ $this->attribut=[];
+
}
/**
*@brief used with a usort function, to sort an array of Fiche on the name
@@ -344,8 +346,8 @@ class Fiche
*/
function strAttribut($p_ad_id,$p_return=1)
{
- $return=($p_return==1)?NOTFOUND:"";
- if ( sizeof ($this->attribut) == 0 )
+ $return=($p_return==1)?NOTFOUND:"";
+ if (is_array($this->attribut) && sizeof ($this->attribut) == 0 )
{
if ($this->id==0) {
- [Noalyss-commit] [noalyss] 183/218: Fix bug from merge, (continued)
- [Noalyss-commit] [noalyss] 183/218: Fix bug from merge, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 195/218: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<", Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 196/218: Mantis #1693: CA - problème avec la balance croisée double, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 206/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 203/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 207/218: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 214/218: Bug : for customer without vat, there is not variable e_march_x_tva, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 218/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 180/218: Mantis #0001614: Problème bilans , changement pour bilan ASBL, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 190/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 81/218: adapt to 7.2 , error with sizeof,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 204/218: Cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 208/218: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 213/218: Code cleaning : remove dead code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 201/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12