noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 147/151: Return must be after throw


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 147/151: Return must be after throw
Date: Sat, 4 Feb 2017 17:14:36 +0000 (UTC)

sparkyx pushed a commit to branch master
in repository noalyss.

commit c7ac850e0971ad69797594548a7baad1b384bad8
Author: Dany De Bontridder <address@hidden>
Date:   Wed Feb 1 22:00:44 2017 +0100

    Return must be after throw
---
 include/class/class_acc_operation.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/class_acc_operation.php 
b/include/class/class_acc_operation.php
index f922376..c81423f 100644
--- a/include/class/class_acc_operation.php
+++ b/include/class/class_acc_operation.php
@@ -88,7 +88,7 @@ class Acc_Operation
 
     function insert_jrnx()
     {
-      if ( $this->poste == "") { return false; throw new  Exception 
(__FILE__.':'.__LINE__.' Poste comptable vide');}
+      if ( $this->poste == "") { throw new  Exception (__FILE__.':'.__LINE__.' 
Poste comptable vide');return false; }
         /* for negative amount the operation is reversed */
         if ( $this->amount < 0 )
         {



reply via email to

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