Record Manager Bugfix

This commit is contained in:
GamerClassN7 2020-11-18 21:41:11 +01:00
parent e9b8e0a453
commit fffaf0e237
1 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,13 @@ class RecordManager{
};
//Ochrana proti duplicitním hodnotám zapisují se jen změny
if (self::getLastRecord($subDeviceId, 1)['value'] == $value){
$lastRecord = self::getLastRecord($subDeviceId, 1);
if (!$lastRecord){
return false;
}
if ($lastRecord['value'] == $value){
return false;
}