From 539fb5d7b089cb2fd333482b97b422e4fe04b7d3 Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 28 Oct 2021 15:13:15 +0800 Subject: [PATCH] *Fix a bug #15778. --- 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 c4b7c9a675..7a70c6ee92 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -728,9 +728,9 @@ class productModel extends model foreach($data->modules as $id => $name) { if(!$name) continue; + if(!($this->config->systemMode == 'classic') and !$data->programs[$id]) continue; $line->name = strip_tags(trim($name)); $line->root = $data->programs[$id]; - if(!($this->config->systemMode == 'classic') and !$line->root) continue; if(is_numeric($id)) {