From b5e7a40e13a27841070c436dc53bc9bd63eacc4a Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 25 Nov 2024 10:05:07 +0800 Subject: [PATCH] * [refac] merge if statement. --- module/execution/control.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 972de64ebe..182e6630b5 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2955,10 +2955,7 @@ class execution extends control $checkedItem = $this->cookie->checkedItem; foreach($executionStats as $i => $execution) { - if($this->post->exportType == 'selected') - { - if(strpos(",$checkedItem,", ",pid{$execution->id},") === false) continue; - } + if($this->post->exportType == 'selected' && strpos(",$checkedItem,", ",pid{$execution->id},") === false) continue; $execution->PM = zget($users, $execution->PM); $execution->status = isset($execution->delay) ? $executionLang->delayed : $this->processStatus('execution', $execution);