Number Translations: Update for PHP 8.1

This commit is contained in:
fusionate 2023-06-09 19:40:41 +00:00
parent 305a18c6b0
commit eeba323429
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -71,8 +71,9 @@
}
//prepare the array
foreach($number_translations as $row) {
$array['number_translations'][$x]['checked'] = $row['checked'];
$x = 0;
foreach ($number_translations as $row) {
$array['number_translations'][$x]['checked'] = $row['checked'] ?? null;
$array['number_translations'][$x]['number_translation_uuid'] = $row['number_translation_uuid'];
$array['number_translations'][$x]['number_translation_enabled'] = $row['number_translation_enabled'];
$x++;