From b73c5fb933f4283bd753a7db3442c6494fbf5897 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 4 Aug 2022 14:19:12 +0800 Subject: [PATCH] * Fix bug #25732. --- module/block/control.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/module/block/control.php b/module/block/control.php index 97df201fb7..03d96eef00 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1704,11 +1704,10 @@ class block extends control foreach($executions as $index => $execution) { - if(!empty($execution->children)) - { - foreach($execution->children as $child) $executions[] = $child; - unset($executions[$index]); - } + if(empty($execution->children)) continue; + + foreach($execution->children as $child) $executions[] = $child; + unset($executions[$index]); } $this->view->executionStats = $executions;