From 75277b62b90debd117adb5fa72bfe3b1953f883f Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 3 Nov 2020 11:18:30 +0800 Subject: [PATCH] * Fix bug. --- module/design/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/design/control.php b/module/design/control.php index ecfdd76a2d..c6ab5a7b19 100644 --- a/module/design/control.php +++ b/module/design/control.php @@ -46,6 +46,8 @@ class design extends control { /* Save session for design list and process product id. */ $this->session->set('designList', $this->app->getURI(true)); + $productKeys = array_keys($this->products); + if(!in_array($productID, $productKeys)) $productID = key($this->products); $this->design->setProductMenu($productID); /* Build the search form. */