mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Record Manager Bugfix
This commit is contained in:
1 parent
e9b8e0a453
commit
fffaf0e237
1 file changed
+7
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user