From 18bc121efdc53ab6e60e921773315a490c97aca5 Mon Sep 17 00:00:00 2001 From: Quitta Date: Wed, 10 Jul 2013 10:28:39 +0200 Subject: [PATCH] fixed some hidden error in the syncing --- code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php index 1c68b822b..6172f8183 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php @@ -29,14 +29,14 @@ class Sync{ $decode = json_decode($record['query']); $values = array('user' => $decode[0], 'pass' => $decode[1]); //make connection with and put into shard db & delete from the lib - $dbs->execute("SET Password = :pass WHERE Login = :user",$values); + $dbs->execute("UPDATE user SET Password = :pass WHERE Login = :user",$values); $dbl->execute("DELETE FROM ams_querycache WHERE SID=:SID",array('SID' => $record['SID'])); break; case 'change_mail': $decode = json_decode($record['query']); $values = array('user' => $decode[0], 'mail' => $decode[1]); //make connection with and put into shard db & delete from the lib - $dbs->execute("SET Email = :mail WHERE Login = :user",$values); + $dbs->execute("UPDATE user SET Email = :mail WHERE Login = :user",$values); $dbl->execute("DELETE FROM ams_querycache WHERE SID=:SID",array('SID' => $record['SID'])); break; case 'createUser':