diff --git a/modules/instrument_list/php/instrument_list_controlpanel.class.inc b/modules/instrument_list/php/instrument_list_controlpanel.class.inc index 811efeec2b0..dafeeb20457 100644 --- a/modules/instrument_list/php/instrument_list_controlpanel.class.inc +++ b/modules/instrument_list/php/instrument_list_controlpanel.class.inc @@ -470,11 +470,8 @@ class Instrument_List_ControlPanel extends \TimePoint $qcStatus = $this->getBVLQCStatus(); foreach ($this->bvlQcTypes as $type) { - $isSelected =$type == $this->getBVLQCType(); - $type =strtolower($type); - if ($type==null) { - $type ="none"; - } + $isSelected = $type == $this->getBVLQCType(); + $type = strtolower($type ?? 'none'); if ($isSelected) { $this->tpl_data['bvl_qc_type_'.$type]['icon'] = 'far fa-check-square'; @@ -509,11 +506,8 @@ class Instrument_List_ControlPanel extends \TimePoint $qcType = $this->getBVLQCType(); foreach ($this->bvlQcStatuses as $status) { - $isSelected =$status == $this->getBVLQCStatus(); - $status =strtolower($status); - if ($status==null) { - $status ="none"; - } + $isSelected = $status == $this->getBVLQCStatus(); + $status = strtolower($status ?? 'none'); if ($isSelected) { $this->tpl_data['bvl_qc_status_'.$status]['icon'] = 'far fa-check-square';