From b17fdbaa1034057b116c2efbfe9678865e54fcb3 Mon Sep 17 00:00:00 2001 From: Thomas Pike Date: Fri, 22 Dec 2023 20:25:27 +0000 Subject: [PATCH] Prevent fatal error on null values --- core.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core.php b/core.php index bc5171b..b2fefa9 100644 --- a/core.php +++ b/core.php @@ -115,6 +115,7 @@ function path_join(...$args) { * @param integer $escaping method of escaping to use */ function out($string, $escaping = ESC_HTML) { + if(is_null($string)) return ''; switch($escaping) { case ESC_HTML: echo htmlspecialchars($string);