Skip to content

Commit

Permalink
fix for undefined array key
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Dec 10, 2024
1 parent f354f54 commit e540f70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## 1.1.0 (December 9, 2024)
* Fix for possible undefined array key error.

## 1.0.0 (September 4, 2022)
* Initial versioned release.
* Initially versioned release.
11 changes: 7 additions & 4 deletions proofs.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,16 @@ function sortBySubkey(&$array, $subkey, $sortType = SORT_ASC)

$data_formats = "<table width=\"70%\"><tr><td colspan=\"2\">MEETING FORMATS</td></tr>";
$countmax = count($formats);
for ($count = 0; $count < $countmax; $count++) {
for ($count = 0; $count < $countmax; $count += 2) {
$data_formats .= '<tr>';
$data_formats .= "<td>".$formats[$count]['key_string']."</td>";
$data_formats .= "<td>".$formats[$count]['name_string']."</td>";
$count++;
$data_formats .= "<td>".$formats[$count]['key_string']."</td>";
$data_formats .= "<td>".$formats[$count]['name_string']."</td>";
if (isset($formats[$count + 1])) {
$data_formats .= "<td>".$formats[$count + 1]['key_string']."</td>";
$data_formats .= "<td>".$formats[$count + 1]['name_string']."</td>";
} else {
$data_formats .= "<td colspan=\"2\"></td>";
}
$data_formats .= "</tr>";
}
$data_formats .= "</table>";
Expand Down

0 comments on commit e540f70

Please sign in to comment.