From 55d18d19db17148051bc5d14f74780d4d4c199ca Mon Sep 17 00:00:00 2001 From: heuzef Date: Sat, 24 Jan 2015 18:40:23 +0100 Subject: [PATCH] Fix bug update version --- change_settings.php | 2 +- update.php | 2 +- version.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/change_settings.php b/change_settings.php index a8e623a..29879bd 100644 --- a/change_settings.php +++ b/change_settings.php @@ -5,7 +5,7 @@ $id=$_POST['id']; $pseudo=$_POST['pseudo']; $pass=sha1($_POST['password']); -$sql="UPDATE membres SET pseudo='$pseudo',pass='$pass'WHERE id=$id"; +$sql="UPDATE membres SET pseudo='$pseudo',pass='$pass' WHERE id=$id"; mysql_query($sql) or die(include('index.php?msg=0')); if($sql) header("location:index.php?msg=1"); ?> diff --git a/update.php b/update.php index 0625b8b..b294a6c 100644 --- a/update.php +++ b/update.php @@ -5,7 +5,7 @@ $hash=md5($email); $path="./medias/".$hash; if ($email) { - $sql="UPDATE membres SET version='$latest_commit'"; + $sql="UPDATE membres SET version='$latest_commit' WHERE id=$id"; mysql_query($sql) or die(include("index.php?msg=0")); exec("rm -rf {$path}"); mkdir("medias/".$hash."/"); diff --git a/version.txt b/version.txt index 8c5be89..c49e86a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -c202d7deda9023ab6888bdba3da44e97ea2d1d6d +9719f80555f7e964cee49a941eaedc4f3f2bd07e