mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
fix updater and other things
This commit is contained in:
1 parent
3ff5e0d660
commit
0b92c0a84a
7 files changed
+42
-43
No files matched your search
@@ -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();
|
||||
|
||||
@@ -16,8 +16,8 @@ class NotificationManager
|
||||
}
|
||||
}
|
||||
|
||||
function getSubscription(){
|
||||
return Db::loadAll('SELECT * FROM notifications;', array());
|
||||
function getSubscription () {
|
||||
return Db::loadAll ("SELECT * FROM notifications");
|
||||
}
|
||||
|
||||
function sendSimpleNotification(string $serverKey, string $to, array $data, bool $timeStamp = false){
|
||||
|
||||
Reference in new issue
Block a user