Skip to content

Commit

Permalink
Fix warning with NULL/emptystring category in achievement list.
Browse files Browse the repository at this point in the history
  • Loading branch information
somiaj committed Aug 18, 2024
1 parent 9122e00 commit 4f415ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[ maketext('all course achievements') => 'all' ],
[ maketext('selected achievements') => 'selected' ],
[ maketext('enter matching achievement IDs below') => 'match_ids', selected => undef ],
[ maketext('enter matching category below') => 'match_category' ],
[ maketext('select matching category below') => 'match_category' ],
[ maketext('enabled achievements') => 'enabled' ],
[ maketext('disabled achievements') => 'disabled' ]
],
Expand All @@ -29,7 +29,7 @@
</div>
% my @categories = $c->db->getAchievementCategories;
% for (@categories) {
% $_ = [$_ => $_];
% $_ = (defined($_) && $_ ne '') ? [$_ => $_] : ["\x{27E8}" . maketext('blank') . "\x{27E9}" => ''];
% }
<div id="filter_category_elements" class="row mb-2">
<%= label_for 'filter_category', class => 'col-form-label col-form-label-sm col-sm-auto', begin =%>
Expand Down

0 comments on commit 4f415ce

Please sign in to comment.