[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 45/218: Fix todo_list : if list empty , gets
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 45/218: Fix todo_list : if list empty , gets an error in php 7.2 |
Date: |
Thu, 12 Sep 2019 15:58:37 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 531df9371a988ab8b5a6d33ba997e9fc6dbb706e
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] 25/218: Task #448 : payment method VEN, (continued)
- [Noalyss-commit] [noalyss] 25/218: Task #448 : payment method VEN, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 30/218: remove debug info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 32/218: Task #448 : SQL integrated into upgrade128, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 35/218: Task #448 : correct bug when saving into quant_purchase, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 36/218: Bug in QUANT_PURCHASE , dp_dep_priv is not saved, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 42/218: remove debug, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 55/218: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 29/218: Task #448 : currency_id = 0 for the default currency + display currency rate in confirm operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 34/218: Task #448 : Currency : purchase, fix bug for autoreverse VAT, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 40/218: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 45/218: Fix todo_list : if list empty , gets an error in php 7.2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 49/218: Update documentation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 54/218: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 59/218: Security fix : f_id is a number, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 67/218: Documentation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 62/218: translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 61/218: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 58/218: Fix : security fixes see rapport exakat (Damien Seguy), Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 46/218: Merge branch 'r700-currency' of ssh://ns3git/srv/git/noalyss into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 26/218: Task #448 : rounded problem add debug info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 16/218: Currency : insert operation with currency in VEN and ACH, Dany De Bontridder, 2019/09/12