Permalink
Browse files

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

  • Loading branch information...
2 parents f934143 + 6e57160 commit 99294459266dbc3da9ab6973d57e1b2c3c0bfedf @stronk7 stronk7 committed Mar 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -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
}

0 comments on commit 9929445

Please sign in to comment.