[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/11: Fix todo_list : if list empty , gets a
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/11: Fix todo_list : if list empty , gets an error in php 7.2 |
Date: |
Tue, 17 Jul 2018 04:04:27 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit d713011ad3b29418020716e153711b008b5c3a34
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] branch master updated (ecc3b53 -> 9029b48), Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 10/11: #0001594: CA - liste opérations affiche toutes les opérations Filtre : uniquement opérations diverses, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 01/11: Update documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 09/11: Create lib for Tabs, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 04/11: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/11: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 11/11: Task #1610 - Problème dans le menu «installation» #0001610: Problème dans le menu «installation», Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 05/11: http_input : strip_tags on array thrown an error, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 07/11: Documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 06/11: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 08/11: Documentation, Dany De Bontridder, 2018/07/17
- [Noalyss-commit] [noalyss] 02/11: Merge branch 'master' of ssh://ns3git/srv/git/noalyss, Dany De Bontridder, 2018/07/17