repairt bug

This commit is contained in:
haitem 2021-01-15 13:38:47 +01:00
parent dc77534bad
commit c17e3090a8
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}