mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
repairt bug
This commit is contained in:
1 parent
dc77534bad
commit
c17e3090a8
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,6 @@ class RecordManager{
|
||||
public static function setHistory($subDeviceId){
|
||||
$history = SubDeviceManager::getSubDevice($subDeviceId)['history'];
|
||||
if ($history > 0) self::clean(-abs($history));
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user