This commit is contained in:
tanghucheng
2023-06-08 05:21:22 +00:00
parent d4c54e20d1
commit 5f8a10c448
+1 -1
View File
@@ -1569,7 +1569,7 @@ class product extends control
*/
public function track($productID, $branch = '', $projectID = 0, $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$branch = ($this->cookie->preBranch !== '' and $branch === '') ? $this->cookie->preBranch : $branch;
$branch = ($this->cookie->preBranch and $branch === '') ? $this->cookie->preBranch : $branch;
setcookie('preBranch', $branch, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true);
/* Set menu. The projectstory module does not execute. */