From 7a9b299afb42a4e57706fd0003677221a229fe35 Mon Sep 17 00:00:00 2001 From: chentao Date: Fri, 19 May 2023 17:00:58 +0800 Subject: [PATCH] * Assign default value to optional parameter '$storyType' of the getStats function. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index f9e3ef7608..23cea9f916 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -1308,7 +1308,7 @@ class productModel extends model * @access public * @return array */ - public function getStats(array $productIdList, string $orderBy = 'order_asc', object|null $pager = null, string $storyType, int $programID = 0): array + public function getStats(array $productIdList, string $orderBy = 'order_asc', object|null $pager = null, string $storyType = 'story', int $programID = 0): array { if(empty($productIdList)) return array();