From 0a687379e3b9a5095a7aa917d007684307002e42 Mon Sep 17 00:00:00 2001 From: justinhunt Date: Thu, 22 Dec 2022 03:37:48 +0000 Subject: [PATCH] fixed an issue where course profile fields if not set were not displayed properly --- filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.php b/filter.php index e3f67fb..e7860b3 100644 --- a/filter.php +++ b/filter.php @@ -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);