diff --git a/module/bug/control.php b/module/bug/control.php index 90d8b2ae74..6f09e108d6 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -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);