Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…j Vela. Thanks
  • Loading branch information...
commit 6e571603c05c38060a9efdb4108679c847711585 1 parent c096042
@rwijaya rwijaya authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
View
2  lib/weblib.php
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.