From f97761f64ef882cd36052c28635bd42e8f1e26f9 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 6 Jun 2023 02:29:04 +0000 Subject: [PATCH] * Fix bug. --- module/tree/model.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/tree/model.php b/module/tree/model.php index 42ca69198b..5eb1a76fab 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -682,11 +682,11 @@ class treeModel extends model $modules = array(); foreach($products as $id => $product) { - $data = new stdclass(); - $data->id = uniqid(); - $data->parent = 0; - $data->name = is_object($product) ? $product->name : $product; - $data->url = helper::createLink($moduleName, $methodName, "{$param}productID=$id"); + $module = new stdclass(); + $module->id = uniqid(); + $module->parent = 0; + $module->name = is_object($product) ? $product->name : $product; + $module->url = helper::createLink($moduleName, $methodName, "{$param}productID=$id"); $modules[] = $module; }