Merge branch 'MDL-19555_m20' of git://github.com/rwijaya/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-03-14 00:35:03 +01:00
+1 -1
View File
@@ -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
}