* fix for get cookie branch.

This commit is contained in:
wangyidong
2016-05-23 09:22:03 +08:00
parent d17beaf08c
commit cd8cd0b43c
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class testtask extends control
/* Set menu. */
$productID = $this->product->saveState($productID, $this->products);
if($branch === '') $branch = $this->cookie->preBranch;
if($branch === '') $branch = (int)$this->cookie->preBranch;
$this->testtask->setMenu($this->products, $productID, $branch);
/* Load pager. */