Skip to content

Commit

Permalink
Fix an uninitialized value in the openDivSpan method of PGbasicmacros…
Browse files Browse the repository at this point in the history
….pl.

This was reported in https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4767#p21510.
See some of the problems posed in that thread for testing.
  • Loading branch information
drgrice1 committed Sep 24, 2024
1 parent bf6d2f0 commit f8d3a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/core/PGbasicmacros.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1580,8 +1580,8 @@ sub openDivSpan {
WARN_MESSAGE("openDivSpan called with an invalid first argument. The entire call was discarded.");
return ();
}
my $option_ref = {};
my $html_attribs;
my $option_ref = {};
my $html_attribs = '';
if (ref($_[0]) eq 'HASH') {
$option_ref = shift;
$html_attribs = processDivSpanOptions($option_ref);
Expand Down

0 comments on commit f8d3a47

Please sign in to comment.