Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-22015 Fixing get_string regression
[moodle.git]
/
lib
/
moodlelib.php
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
b095c4f
..
105f1a6
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-5938,6
+5938,10
@@
class core_string_manager implements string_manager {
// we do not support numeric keys - sorry!
continue;
}
+ if (is_object($value) or is_array($value)) {
+ // we support just string as value
+ continue;
+ }
$search[] = '{$a->'.$key.'}';
$replace[] = (string)$value;
}