Permalink
Browse files

MDL-19555: add NULL string test to format_test(). Credit goes to Mate…

…j Vela. Thanks
  • Loading branch information...
1 parent c096042 commit 6e571603c05c38060a9efdb4108679c847711585 @rwijaya rwijaya committed Mar 11, 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 6e57160

Please sign in to comment.