noalyss-commit
[Top][All Lists]
Advanced

[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++)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]