mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-60391 libraries: patch bennu for php 7.2
This commit is contained in:
parent
d8e9a23c48
commit
9016f772ce
2 changed files with 5 additions and 1 deletions
|
@ -107,7 +107,10 @@ class iCalendar_property {
|
|||
$valarray = explode('\\,', $this->value);
|
||||
|
||||
// Undo transparent formatting
|
||||
$replace_function = create_function('$a', 'return rfc2445_undo_value_formatting($a, '.$this->val_type.');');
|
||||
$valtype = $this->val_type;
|
||||
$replace_function = function($a) use ($valtype) {
|
||||
return rfc2445_undo_value_formatting($a, $valtype);
|
||||
};
|
||||
$valarray = array_map($replace_function, $valarray);
|
||||
|
||||
// Now, if this property cannot have multiple values, don't return as an array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue