[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets an error in php 7.2 |
Date: |
Sat, 26 Oct 2019 04:40:29 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel7110
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] 107/238: Currency : export PDF and CSV with currency for printing financial ledger listing(oneline), (continued)
- [Noalyss-commit] [noalyss] 107/238: Currency : export PDF and CSV with currency for printing financial ledger listing(oneline), Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 55/238: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 60/238: Security fix : f_id is a number, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 57/238: Security : direct injection, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 67/238: Documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 73/238: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 71/238: Check for date and number : isdate and isnumeric, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 79/238: Bug : in Purchase and Sale , the last rows disappear when we change the ledger, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 49/238: Update documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 54/238: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 61/238: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 69/238: Create lib for Tabs, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 72/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 70/238: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type select, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 83/238: adapt to 7.2 ,init, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 78/238: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 81/238: adapt to 7.2 , error with sizeof, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 87/238: translate, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 89/238: adapt to 7.2 ,array, Dany De Bontridder, 2019/10/26