mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
fixed some hidden error in the syncing
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
5e053f3fc4
commit
f98a4617f0
1 changed files with 2 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue