MDL-31006 fix various notices in PHP54
PHP54 compatibility
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
ae924874d7
commit
b85b25ebb8
@@ -128,6 +128,9 @@ function file_prepare_standard_editor($data, $field, array $options, $context=nu
|
||||
if (is_null($itemid) or is_null($context)) {
|
||||
$contextid = null;
|
||||
$itemid = null;
|
||||
if (!isset($data)) {
|
||||
$data = new stdClass();
|
||||
}
|
||||
if (!isset($data->{$field})) {
|
||||
$data->{$field} = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user