* [bug#61064,done,0.1h,0h] Optimize code.

This commit is contained in:
wangyuting
2025-04-01 14:05:18 +08:00
committed by 刘刚
parent 0568ba72a4
commit 4963fc11bf
+2 -2
View File
@@ -1452,10 +1452,10 @@ class upgradeModel extends model
$orGroup = $this->dao->select('name')->from(TABLE_GROUP)->where('vision')->eq('or')->fetchAll();
if(empty($orGroup))
{
$group = new stdclass();
$group->vision = 'or';
foreach($orData as $role => $name)
{
$group = new stdclass();
$group->vision = 'or';
$group->name = $name;
$group->role = $role;
$group->desc = $name;