[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 14/19: Fiche:GetByDef if nothing is found ret
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 14/19: Fiche:GetByDef if nothing is found returns empty array |
Date: |
Mon, 9 Sep 2019 13:55:00 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit f006539934a0aa96ada1cffe5f1c44fd60790cd6
Author: Dany De Bontridder <address@hidden>
Date: Mon Sep 9 08:15:51 2019 +0200
Fiche:GetByDef if nothing is found returns empty array
---
include/class/fiche.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 67db0c9..366c041 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -313,7 +313,7 @@ class Fiche
$Ret=$this->cn->exec_sql($sql);
if ( ($Max=Database::num_row($Ret)) == 0 )
- return ;
+ return [];
$all[0]=new Fiche($this->cn);
for ($i=0;$i<$Max;$i++)
- [Noalyss-commit] [noalyss] branch master updated (598fe82 -> dcd880f), Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 01/19: Typo DatabaseCore, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 02/19: highlight default password, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 03/19: hightlight password + add waiting box when installing, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 10/19: Task #0001733: Impression moyen paiement Add name of the bank card to the prepared query, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 11/19: CFGLED Ergonomy : the card we've created is proposed in the field "bank account", Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 12/19: Merge branch 'dev7109', Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 14/19: Fiche:GetByDef if nothing is found returns empty array,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 16/19: Fiche Cosmetic :, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 04/19: Correct Add button for ledger when creating FIN ledger, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 05/19: Bug prerelease : Cannot save preference, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 07/19: Code : mistype variable $step, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 06/19: Code : missing semicolon, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 15/19: Security : direct access to GLOBALS, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 17/19: Merge branch 'dev7109', Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 19/19: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 08/19: verif_bil : fetch_all return false or an array, comptability PHP7, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 13/19: Security : direct access to GLOBALS, Dany De Bontridder, 2019/09/09