[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 77/162: adapt to 7.2 , error with sizeof
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 77/162: adapt to 7.2 , error with sizeof |
Date: |
Sat, 11 Jul 2020 13:23:42 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit 7c74247408dbb0fae3e8997259a86145d1cd24af
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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] 71/162: Improve waiting box, (continued)
- [Noalyss-commit] [noalyss] 71/162: Improve waiting box, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 72/162: Bug : cannot set group, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 75/162: Bug : in Purchase and Sale , the last rows disappear when we change the ledger, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 66/162: Documentation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 67/162: Create lib for Tabs, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 68/162: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 70/162: Merge branch 'master' into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 73/162: Manage_Table : issue with the type select, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 74/162: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 76/162: Improve debug info, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 77/162: adapt to 7.2 , error with sizeof,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 80/162: Style.css Ajout de nowrap, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 82/162: Currency : show the currency of the ledger when entering info, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 83/162: translate, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 59/162: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 78/162: adapt to 7.2 , error with count, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 79/162: adapt to 7.2 ,init, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 81/162: Currency : financial ledger can be set to a specific currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 84/162: FIN : cosmetic : bug due the currency feature in the input there are 2 supplementary rows for total in EUR and CURRENCY. Those rows don't exist for FIN, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 85/162: adapt to 7.2 ,array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 86/162: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2020/07/11