fix updater and other things

This commit is contained in:
unknown
2020-03-12 21:34:12 +01:00
parent 3ff5e0d660
commit 0b92c0a84a
7 changed files with 42 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ class DeviceManager{
public function editByToken ($token, $values = []) {
try {
Db::edit ('devices', $values, 'WHERE token = ?', array($deviceId));
Db::edit ('devices', $values, 'WHERE token = ?', array($token));
} catch(PDOException $error) {
echo $error->getMessage();
die();