mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Static Function fix
This commit is contained in:
1 parent
a13c30a5c3
commit
e8b2ad8599
1 file changed
+2
-2
@@ -2,7 +2,7 @@
|
||||
class RecordManager{
|
||||
public static $records;
|
||||
|
||||
public function create ($deviceId, $type, $value) {
|
||||
public static function create ($deviceId, $type, $value) {
|
||||
$subDeviceId = Db::loadOne('SELECT * FROM subdevices WHERE device_id = ? AND type = ?;', array($deviceId, $type))['subdevice_id'];
|
||||
if ($subDeviceId == '') {
|
||||
return false;
|
||||
@@ -19,7 +19,7 @@ class RecordManager{
|
||||
}
|
||||
}
|
||||
|
||||
public static function setExecuted($recordId) {
|
||||
public static static function setExecuted($recordId) {
|
||||
try {
|
||||
Db::edit ('records', ['execuded' => 1], 'WHERE record_id = ?', array($recordId));
|
||||
} catch(PDOException $error) {
|
||||
|
||||
Reference in new issue
Block a user