[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/44: adapt to 7.2 , error with sizeof
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/44: adapt to 7.2 , error with sizeof |
Date: |
Wed, 26 Dec 2018 04:29:50 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 845c0b29f9710f85a029c4177c5d036ff420658e
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 a69db88..ad087f5 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=[];
+
}
/**
address@hidden 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] branch master updated (25be6b6 -> eeef5d2), Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 03/44: adapt to 7.2 , error with sizeof,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/44: adapt to 7.2 ,error with count, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 01/44: Backport from 7.1 SQL for currency, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 04/44: Improve waiting box, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 09/44: CSS : cosmetic a.mtitle:hover, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 19/44: CSS : print number align to right, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 18/44: css : force a.inline to be inline !, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 07/44: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 13/44: adapt to 7.2 : array, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 06/44: adapt to 7.2 ,init, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box , callback function is not defined, Dany De Bontridder, 2018/12/26