Skip to content

Commit

Permalink
[instrument_list] Fix deprecation warning (24.1) (#9053)
Browse files Browse the repository at this point in the history
Backport #8867 to 24.1.
  • Loading branch information
regisoc committed Feb 16, 2024
1 parent b7019c0 commit 3d0093d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions modules/instrument_list/php/instrument_list_controlpanel.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 3d0093d

Please # to comment.