repairt bug
This commit is contained in:
parent
dc77534bad
commit
c17e3090a8
@ -28,7 +28,7 @@ class RecordManager{
|
||||
//Ochrana proti duplicitním hodnotám zapisují se jen změny
|
||||
$lastRecord = self::getLastRecord($subDeviceId, 1);
|
||||
|
||||
if ($lastRecord['value'] == $value){
|
||||
if (isset($lastRecord['value']) && $lastRecord['value'] == $value){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user