[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/19: Fix todo_list : if list empty , gets a
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/19: Fix todo_list : if list empty , gets an error in php 7.2 |
Date: |
Sat, 21 Jul 2018 07:47:39 -0400 (EDT) |
sparkyx pushed a commit to tag r700-currency-005
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);
- [Noalyss-commit] [noalyss] tag r700-currency-005 created (now 457290f), Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 03/19: Update documentation, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 01/19: typo, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 05/19: New version of libreoffice use the numeric in another way, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 06/19: Create invoice : New version of libreoffice use the numeric in another way, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 09/19: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 10/19: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/19: Security fix : f_id is a number, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 15/19: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 02/19: Task #448 : add currency to card -> history + export CSV, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 14/19: Security fix : f_id is a number, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 16/19: translation, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 11/19: Security : direct injection, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 19/19: Merge branch 'master' into r700-currency, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 17/19: CFGLED : security fix : remove $_REQUEST, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 18/19: Merge master, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 04/19: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2018/07/21