- Issue created by @franceslui
- Status changed to Needs review
12 months ago 1:12am 24 April 2024 - 🇨🇦Canada franceslui
The code attempts to access array elements based on $index without checking if the $index is within the bounds of the $thresholds array. This leads to "Undefined offset" errors when the $names array has more elements than the $thresholds array.
We need to ensure that the index access within the $thresholds array is safe by checking that $index is within the array bounds. In my attached patch, I assume that $thresholds[0] should be used if $thresholds[$index] is not set. Please see my attached patch for details.
- Assigned to abhishek_virasat
- Issue was unassigned.
- Status changed to RTBC
12 months ago 5:03am 24 April 2024 - 🇮🇳India abhishek_virasat
@kribo, above patch fixes the issue , I have verified locally , also created MR.moving RTBC++