Browse Source

repairt bug

remastering
haitem 1 year ago
parent
commit
c17e3090a8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/managers/RecordManager.php

+ 2
- 2
app/models/managers/RecordManager.php 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;
}
@ -114,6 +114,6 @@ class RecordManager{
public static function setHistory($subDeviceId){
$history = SubDeviceManager::getSubDevice($subDeviceId)['history'];
if ($history > 0) self::clean(-abs($history));
}
}
}
?>

Loading…
Cancel
Save