Optimize the code.

This commit is contained in:
孙华伟
2022-04-02 08:47:38 +08:00
parent 41d22a7f4b
commit a58fc45e20
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -545,7 +545,7 @@ class bug extends control
}
foreach($stories as $key => $value)
{
$story = $this->story->getByID($stories[$key]);
$story = $this->story->getByID($value);
if(!empty($story->childStories)) unset($stories[$key]);
}