noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 56/218: Fix todo_list : if list empty , gets


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 56/218: Fix todo_list : if list empty , gets an error in php 7.2
Date: Thu, 12 Sep 2019 15:58:40 -0400 (EDT)

sparkyx pushed a commit to branch entreprise
in repository noalyss.

commit f96180c15722b45c4286820115f325d713554cbf
Author: Dany De Bontridder <address@hidden>
Date:   Wed May 23 15:58:59 2018 +0200

    Fix todo_list : if list empty , gets an error in php 7.2
---
 include/class/todo_list.class.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/class/todo_list.class.php 
b/include/class/todo_list.class.php
index b468caa..112f3a1 100644
--- a/include/class/todo_list.class.php
+++ b/include/class/todo_list.class.php
@@ -353,8 +353,10 @@ class Todo_List
     }
     static  function to_object ($p_cn,$p_array) 
     {
-        $end=count($p_array);
+       
         $ret=array();
+       if ( $p_array == FALSE ) return $ret;
+        $end=count($p_array);
         for ($i=0;$i < $end;$i++)
         {
             $t=new Todo_List($p_cn);



reply via email to

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