noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/06: Task #1048 - Remplacer exit et die Rep


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/06: Task #1048 - Remplacer exit et die Replace in inc file exit by return
Date: Sat, 15 Nov 2014 01:23:56 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit a8fd49f65141065d331d0628e6549794c8158013
Author: Dany De Bontridder <address@hidden>
Date:   Sat Nov 15 01:53:19 2014 +0100

    Task #1048 - Remplacer exit et die
    Replace in inc file  exit by return
---
 include/fiche.inc.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 053135a..1a87523 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -277,7 +277,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
        {
                echo h2(_('Date invalide !'), 'class="error"');
                alert(_('Date invalide !'));
-               exit;
+               return;
        }
        if ( $allcard == 0 ) echo $str_add_card;
        echo $export_pdf;
@@ -288,7 +288,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
        if ($allcard == 0 && $fd->hasAttribute(ATTR_DEF_ACCOUNT) == false)
        {
                echo alert(_("Cette catégorie n'ayant pas de poste comptable 
n'a pas de balance"));
-               exit;
+               return;
        }
        // all card
        if ($allcard == 1)
@@ -308,7 +308,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
                        if ($allcard == 0)
                        {
                                echo _("Aucune fiche trouvée");
-                               exit;
+                               return;
                        } else
                                continue;
                }
@@ -379,7 +379,7 @@ if (isDate($_REQUEST['start']) == null || 
isDate($_REQUEST['end']) == null)
 {
        echo h2('Date invalide !', 'class="error"');
        alert('Date invalide !');
-       exit;
+       return;
 }
 
/***********************************************************************************************************************************
  * Lettering



reply via email to

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