Skip to content

Commit

Permalink
Merge pull request wavelog#1447 from AndreasK79/wac_emptylog_fix
Browse files Browse the repository at this point in the history
[WAC Award] Added a check before unset
  • Loading branch information
AndreasK79 authored Jan 3, 2025
2 parents f46cd98 + 73a3049 commit 6de4d9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/models/Wac.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function get_wac_array($bands, $postdata, $location_list) {
if ($postdata['notworked'] == NULL) {
foreach ($this->validContinents as $cont) {
if ($wac[$cont]['count'] == 0) {
unset($bandWac[$cont]);
if (isset($bandWac)) {
unset($bandWac[$cont]);
}
};
}
}
Expand Down

0 comments on commit 6de4d9a

Please sign in to comment.