Merge branch 'MDL-19555_m20' of git://github.com/rwijaya/moodle
This commit is contained in:
+1
-1
@@ -976,7 +976,7 @@ function format_text($text, $format = FORMAT_MOODLE, $options = NULL, $courseid_
|
||||
global $CFG, $COURSE, $DB, $PAGE;
|
||||
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