Skip to content

Commit b17fdba

Browse files
committed
Prevent fatal error on null values
1 parent 61a28ef commit b17fdba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function path_join(...$args) {
115115
* @param integer $escaping method of escaping to use
116116
*/
117117
function out($string, $escaping = ESC_HTML) {
118+
if(is_null($string)) return '';
118119
switch($escaping) {
119120
case ESC_HTML:
120121
echo htmlspecialchars($string);

0 commit comments

Comments
 (0)