diff --git a/lib/filelib.php b/lib/filelib.php index 97ff882c80c..7bad18183ad 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -124,7 +124,7 @@ function file_prepare_standard_editor($data, $field, array $options, $context=nu throw new coding_exception($exceptionmsg); } } - + if (is_null($itemid) or is_null($context)) { $contextid = null; $itemid = null;