* Replace setcookie to helper::setcookie.

This commit is contained in:
songchenxuan
2023-05-11 07:53:58 +00:00
committed by qixinzhi
parent 58c5c54df3
commit 5df4e9eb04
+1 -1
View File
@@ -347,7 +347,7 @@ class bug extends control
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Set from param if there is a object to transfer bug. */
setcookie('lastBugModule', (int)$data->data->module, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true);
helper::setcookie('lastBugModule', (string)$data->data->module);
$bug = $this->bug->getByID($bugID);