Skip to content

Commit

Permalink
fixed an issue where course profile fields if not set were not displa…
Browse files Browse the repository at this point in the history
…yed properly
  • Loading branch information
justinhunt committed Dec 22, 2022
1 parent e145a2a commit 0a68737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function filter_generico_callback(array $link) {
}
}
//if we have a propname and a propvalue, do the replace
if (!empty($courseprop) && !empty($propvalue)) {
if (!empty($courseprop) && !is_null($propvalue)) {
$genericotemplate = str_replace('@@COURSE:' . $courseprop_allcase . '@@', $propvalue, $genericotemplate);
$dataset_vars = str_replace('@@COURSE:' . $courseprop_allcase . '@@', $propvalue, $dataset_vars);
$alternate_content = str_replace('@@COURSE:' . $courseprop_allcase . '@@', $propvalue, $alternate_content);
Expand Down

0 comments on commit 0a68737

Please sign in to comment.