mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
fix saving parameters
This commit is contained in:
parent
cdf29f754d
commit
317f10b5d1
|
@ -232,14 +232,14 @@ class SeedDMS_SchedulerTask {
|
||||||
if (!$res)
|
if (!$res)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$this->_disabled = $newDisable;
|
$this->_disabled = $newDisabled;
|
||||||
return true;
|
return true;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
public function setParameter($newParams) { /* {{{ */
|
public function setParameter($newParams) { /* {{{ */
|
||||||
$db = $this->db;
|
$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);
|
$res = $db->getResult($queryStr);
|
||||||
if (!$res)
|
if (!$res)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user