noalyss-commit
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]