summaryrefslogtreecommitdiff
path: root/final/app/include/ju.inc.php
diff options
context:
space:
mode:
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);
}