summaryrefslogtreecommitdiff
path: root/final/app/include/ju.inc.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:34:06 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:34:06 +0200
commite7cf0e99f41ab8ba3bab8aed516123c6f4ff3979 (patch)
tree979d1bd14bd76882f44704b51873404adf297809 /final/app/include/ju.inc.php
parent35a23f6145bb772b9bfa8c8eeb500aa8c02437d3 (diff)
download2007-AWOR-e7cf0e99f41ab8ba3bab8aed516123c6f4ff3979.tar.gz
2007-AWOR-e7cf0e99f41ab8ba3bab8aed516123c6f4ff3979.tar.bz2
2007-AWOR-e7cf0e99f41ab8ba3bab8aed516123c6f4ff3979.zip
Version final-03-27-12h
Diffstat (limited to 'final/app/include/ju.inc.php')
-rw-r--r--final/app/include/ju.inc.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/final/app/include/ju.inc.php b/final/app/include/ju.inc.php
index 4bb9330..4ab1a1c 100644
--- a/final/app/include/ju.inc.php
+++ b/final/app/include/ju.inc.php
@@ -153,9 +153,13 @@ function traiter_formulaire_maj_profil()
{
require_once ('include/tools.inc.php');
$requete = "UPDATE AWOR_Personne SET courrielP = '".addslashes_if_needed($_POST["courrielP"])."', loginP = '".addslashes_if_needed($_POST["loginP"])."', nomP = '".addslashes_if_needed($_POST["nomP"])."', prenomP = '".addslashes_if_needed($_POST["prenomP"])."', methodeAuth = '".addslashes_if_needed($_POST["methodeAuth"])."' WHERE idP = '".$_SESSION['session_idP']."'";
- if(mysql_query($requete) == false) return "Une erreur MySQL est survenu : ".mysql_error();
- $_SESSION['session_prenomP'] = $_POST["prenomP"];
- $_SESSION['session_nomP'] = $_POST["nomP"];
+ if(mysql_query($requete) === false) return false;// "Une erreur MySQL est survenu : ".mysql_error();
+ else
+ {
+ $_SESSION['session_prenomP'] = $_POST["prenomP"];
+ $_SESSION['session_nomP'] = $_POST["nomP"];
+ return true;
+ }
//print_r($_POST);
}