[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 81/238: adapt to 7.2 , error with sizeof
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 81/238: adapt to 7.2 , error with sizeof |
Date: |
Sat, 26 Oct 2019 04:40:39 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel7110
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] 49/238: Update documentation, (continued)
- [Noalyss-commit] [noalyss] 49/238: Update documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 54/238: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 61/238: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 69/238: Create lib for Tabs, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 72/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 70/238: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type select, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 83/238: adapt to 7.2 ,init, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 78/238: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 81/238: adapt to 7.2 , error with sizeof,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 87/238: translate, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 89/238: adapt to 7.2 ,array, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 80/238: Improve debug info, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 82/238: adapt to 7.2 , error with count, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 84/238: Style.css Ajout de nowrap, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 90/238: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 92/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 86/238: Currency : show the currency of the ledger when entering info, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 94/238: acc_ledger_fin : cosmetic : input, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 97/238: Fin : currency , add missing info into Operation_Currency, Dany De Bontridder, 2019/10/26