[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/173: Fix todo_list : if list empty , gets
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/173: Fix todo_list : if list empty , gets an error in php 7.2 |
Date: |
Mon, 22 Mar 2021 12:58:19 -0400 (EDT) |
sparkyx pushed a commit to branch master
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);
- [Noalyss-commit] [noalyss] branch master updated (f92a724 -> a02ebda), Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 01/173: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/173: Merge branch 'r700-currency' of ssh://ns3git/srv/git/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 03/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 04/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 09/173: Esthetic with button "Add accounting", Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 08/173: Missing bracket, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 10/173: typo doc, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 06/173: Merge branch 'master' into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 07/173: Merge commit '3f53de417dd89e9a90a386404f93f8648155e046' into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 11/173: Translation + use of httpInput, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 13/173: Translation, Dany De Bontridder, 2021/03/22