[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);
- [Noalyss-commit] [noalyss] 133/218: Translation, (continued)
- [Noalyss-commit] [noalyss] 133/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 134/218: use of httpInput, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 142/218: Currency : Precision 6, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 147/218: Currency : detail operation Purchase , the amount in currency were wrong in the summary, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 148/218: remove commented code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 152/218: New function findSide return D if number is <0, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 93/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 37/218: comment, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 50/218: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 52/218: Create invoice : New version of libreoffice use the numeric in another way, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 56/218: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 60/218: Security fix : f_id is a number, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 57/218: Security : direct injection, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 63/218: CFGLED : security fix : remove $_REQUEST, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 64/218: Merge master, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 72/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 83/218: adapt to 7.2 ,init, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 86/218: Currency : show the currency of the ledger when entering info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 89/218: adapt to 7.2 ,array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 90/218: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 109/218: Indentation, Dany De Bontridder, 2019/09/12