[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);
- [Noalyss-commit] [noalyss] annotated tag E-8000 created (now 9258255), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 02/27: Merge branch 'r700-currency' of ssh://ns3git/srv/git/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 01/27: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/27: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 04/27: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 06/27: translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 07/27: Mantis #0001688: Affichage centime dans l'écran de confirmation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 11/27: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, missing file, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 05/27: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 10/27: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, add action CSV:Analytic_Axis, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 15/27: Mantis #1643: Déplacement du "bouton" «retour en-haut/calculatrice», Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 18/27: Mantis #0001614: Problème bilans , changement pour bilan ASBL, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 23/27: Merge issue : inappropriate rollback, Dany De Bontridder, 2020/07/11