fix saving parameters

This commit is contained in:
Uwe Steinmann 2020-05-18 16:21:54 +02:00
parent cdf29f754d
commit 317f10b5d1

View File

@ -232,14 +232,14 @@ class SeedDMS_SchedulerTask {
if (!$res)
return false;
$this->_disabled = $newDisable;
$this->_disabled = $newDisabled;
return true;
} /* }}} */
public function setParameter($newParams) { /* {{{ */
$db = $this->db;
$queryStr = "UPDATE `tblSchedulerTask` SET `parameter` =".json_encode($newParams)." WHERE `id` = " . $this->_id;
$queryStr = "UPDATE `tblSchedulerTask` SET `params` =".$db->qstr(json_encode($newParams))." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;