noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 38/107: load_all must always return an array


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 38/107: load_all must always return an array
Date: Mon, 26 Aug 2019 10:31:53 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit a99d1e16fe08802ae2585301ef7cd7e8c7c9aaec
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jul 24 22:36:03 2019 +0200

    load_all must always return an array
---
 include/class/follow_up_detail.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class/follow_up_detail.class.php 
b/include/class/follow_up_detail.class.php
index e779bc7..fdb39ab 100644
--- a/include/class/follow_up_detail.class.php
+++ b/include/class/follow_up_detail.class.php
@@ -17,7 +17,7 @@
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 require_once  NOALYSS_INCLUDE.'/class/fiche.class.php';
-require_once  NOALYSS_INCLUDE.'/lib/database.class.php';
+require_once  NOALYSS_INCLUDE.'/class/database.class.php';
 // Copyright Author Dany De Bontridder address@hidden
 
 /*!\file
@@ -152,7 +152,7 @@ class Follow_Up_Detail
                  $sql,
                  array($this->ag_id)
              );
-        if ( $this->db->count() == 0 ) return;
+        if ( $this->db->count() == 0 ) return array();
         $aRet=array();
         for($i=0;$i<count($res);$i++)
         {



reply via email to

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