diff --git a/inc/functions.php b/inc/functions.php index c82a4c93..991729ef 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2231,7 +2231,11 @@ function escape_markup_modifiers($string) { } function utf8tohtml($utf8) { - return htmlspecialchars($utf8, ENT_NOQUOTES, 'UTF-8'); + if ($utf8 == null) { + return ''; + } else { + return htmlspecialchars($utf8, ENT_NOQUOTES, 'UTF-8'); + } } function ordutf8($string, &$offset) { diff --git a/templates/generic_page.html b/templates/generic_page.html index 830d1f43..775da16e 100644 --- a/templates/generic_page.html +++ b/templates/generic_page.html @@ -49,8 +49,8 @@ {% for footer in config.footer %}
{{ footer }}
{% endfor %} - + {% endverbatim %}