diff --git a/module/product/control.php b/module/product/control.php index a44af169ad..bb34cc6864 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -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. */