MDL-19555: add NULL string test to format_test(). Credit goes to Matej Vela. Thanks
This commit is contained in:
+1
-1
@@ -1502,7 +1502,7 @@ function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL
|
||||
|
||||
static $croncache = array();
|
||||
|
||||
if ($text === '') {
|
||||
if ($text === '' || is_null($text)) {
|
||||
return ''; // no need to do any filters and cleaning
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user