From 841de3126608382aeb7ce2bbd88f975acbc56d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Tue, 11 Sep 2018 17:08:03 +0800 Subject: [PATCH] * Fix bug for php7.2 --- module/bug/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 88d6030491..f145caaa5d 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -328,9 +328,10 @@ class bug extends control $pri = ''; $color = ''; - /* Parse the extras. */ + /* Parse the extras. extract fix php7.2*/ $extras = str_replace(array(',', ' '), array('&', ''), $extras); - parse_str($extras); + parse_str($extras, $output); + extract($output); if($runID and $resultID) extract($this->bug->getBugInfoFromResult($resultID, 0, 0, isset($stepIdList) ? $stepIdList : ''));// If set runID and resultID, get the result info by resultID as template. if(!$runID and $caseID) extract($this->bug->getBugInfoFromResult($resultID, $caseID, $version, isset($stepIdList) ? $stepIdList : ''));// If not set runID but set caseID, get the result info by resultID and case info.