[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 22/35: Acc_Ledger_Sold : avoid message when u
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 22/35: Acc_Ledger_Sold : avoid message when undefined variable |
Date: |
Tue, 24 May 2016 21:25:39 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2fcebf3d1f437eba7b0edad050433a904e260682
Author: Dany De Bontridder <address@hidden>
Date: Sat Apr 30 16:47:24 2016 +0200
Acc_Ledger_Sold : avoid message when undefined variable
---
include/class/class_acc_ledger_sold.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/class/class_acc_ledger_sold.php
b/include/class/class_acc_ledger_sold.php
index 6358679..3f1188c 100644
--- a/include/class/class_acc_ledger_sold.php
+++ b/include/class/class_acc_ledger_sold.php
@@ -157,7 +157,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
// foreach item
//----------------------------------------
for ($i = 0; $i < $nb_item; $i++) {
- if (strlen(trim(${'e_march' . $i})) == 0)
+ if (! isset (${'e_march' . $i}) || strlen(trim(${'e_march' . $i}))
== 0)
continue;
/* check if amount are numeric and */
if (isNumber(${'e_march' . $i . '_price'}) == 0)
- [Noalyss-commit] [noalyss] branch master updated (2fed7bc -> 008ed58), Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 08/35: Improve Admin/user , use new alert box, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 10/35: Sendmail : Remove dead code, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 14/35: Translation, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 17/35: Limit email : fix small bugs, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 01/35: fid.php : retrieve parameters with safe function, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 22/35: Acc_Ledger_Sold : avoid message when undefined variable,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/35: Translation, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 18/35: Documentation sorttable_nosort, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 15/35: Bug : wrong url to update folders, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 27/35: Merge branch 'master' of ssh://ns2git/srv/git/noalyss, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 05/35: Add defined value OFFICE and GENERATE_PDF, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 02/35: Extension : fix path, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 26/35: Import IText, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 23/35: Fix several small bugs, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 35/35: Impress JRN Fix bug with qcode, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 13/35: translation, Dany De Bontridder, 2016/05/24