* [bug#58520] fix sql error in dameng.

This commit is contained in:
liugang
2024-12-26 13:35:15 +08:00
committed by 胡方舟
parent f6a36b7c1f
commit 3eeb78d16e
+1 -1
View File
@@ -965,7 +965,7 @@ class treeModel extends model
if(empty($modules))
{
$typeCondition = "type='story'";
if($type != 'story') $typeCondition .= " || type='{$type}'";
if($type != 'story') $typeCondition .= " OR type='{$type}'";
$modules = $this->dao->select('id,path')->from(TABLE_MODULE)->where('root')->eq($module->root)->andWhere("({$typeCondition})")->fetchPairs('id', 'path');
}
$childModules = array();