From 5e199b4dc12a53347137fd219cc4bd71247097ca Mon Sep 17 00:00:00 2001 From: dingguodong Date: Mon, 24 Jul 2023 14:41:38 +0800 Subject: [PATCH] + Make sure productID is set. --- module/projectstory/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/projectstory/control.php b/module/projectstory/control.php index 8568ac8cba..613e01b93d 100644 --- a/module/projectstory/control.php +++ b/module/projectstory/control.php @@ -50,6 +50,9 @@ class projectStory extends control if(empty($this->products)) $this->locate($this->createLink('product', 'showErrorNone', 'moduleName=project&activeMenu=story&projectID=' . $projectID)); + /* Make sure productID is set. */ + if(empty($productID)) $productID = key($this->products); + echo $this->fetch('product', 'browse', array ( 'productID' => $productID,