noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/27: Fix todo_list : if list empty , gets a


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/27: Fix todo_list : if list empty , gets an error in php 7.2
Date: Sat, 11 Jul 2020 13:25:13 -0400 (EDT)

sparkyx pushed a commit to annotated tag E-8000
in repository noalyss.

commit 531df9371a988ab8b5a6d33ba997e9fc6dbb706e
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: 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]