Skip to content

Commit

Permalink
Fix undefined offset warining in summary page
Browse files Browse the repository at this point in the history
This happens when a severity id is defined that does not exists in
$g_severity_multipliers

Fixes: #21915
  • Loading branch information
cproensa authored and vboctor committed Nov 13, 2016
1 parent 5407ec7 commit e9a586f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/summary_api.php
Expand Up @@ -1122,7 +1122,7 @@ function summary_print_reporter_effectiveness( $p_severity_enum_string, $p_resol

$t_sev_bug_count = $t_arr2[$c_sev_s[$j]]['total'];
$t_sev_mult = 1;
if( $t_severity_multipliers[$c_sev_s[$j]] ) {
if( isset( $t_severity_multipliers[$c_sev_s[$j]] ) ) {
$t_sev_mult = $t_severity_multipliers[$c_sev_s[$j]];
}

Expand Down

0 comments on commit e9a586f

Please sign in to comment.