Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 99294459266dbc3da9ab6973d57e1b2c3c0bfedf 2 parents f934143 + 6e57160
@stronk7 stronk7 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.