[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
- [Noalyss-commit] [noalyss] branch master updated (54b6037 -> e8b5d52), Dany De Bontridder, 2014/11/14
- [Noalyss-commit] [noalyss] 01/06: Enforce security - ajax, Dany De Bontridder, 2014/11/14
- [Noalyss-commit] [noalyss] 04/06: Task #1044 - Implementation de Test Test files, Dany De Bontridder, 2014/11/14
- [Noalyss-commit] [noalyss] 06/06: Task #1045 - Amélioration apparence : Position nouvelle fiche, Dany De Bontridder, 2014/11/14
- [Noalyss-commit] [noalyss] 03/06: Task #1048 - Remplacer exit et die Replace in inc file exit by return,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/06: Replace in inc file exit by return, Dany De Bontridder, 2014/11/14
- [Noalyss-commit] [noalyss] 05/06: Task #1044 - Implementation de Test Test files, Dany De Bontridder, 2014/11/14