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.