diff --git a/core/class/history.class.php b/core/class/history.class.php index 48e1872a8f..c1ed749631 100644 --- a/core/class/history.class.php +++ b/core/class/history.class.php @@ -1032,9 +1032,9 @@ public function save($_cmd = null, $_direct = false) { && $this->getValue() !== null ) { if ($this->getTableName() == 'history') { $time = strtotime($this->getDatetime()); - $time -= $time % $cmd->getConfiguration('smooth', config::byKey('history::smooth','core',0)); + $time -= $time % $cmd->getConfiguration('history::smooth', config::byKey('history::smooth','core',0)); if ($this->getValue() == 0) { - $this->setDatetime(date('Y-m-d H:i:00', $time + $cmd->getConfiguration('smooth', config::byKey('history::smooth','core',0)))); + $this->setDatetime(date('Y-m-d H:i:00', $time + $cmd->getConfiguration('history::smooth', config::byKey('history::smooth','core',0)))); $values = array( 'cmd_id' => $this->getCmd_id(), 'datetime' => date('Y-m-d H:i:00', strtotime($this->getDatetime())),