Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c23f4e
)
MDL-61619 core: use empty string instead of null in xmlize
author
Jake Dallimore
<jake@moodle.com>
Mon, 12 Mar 2018 02:56:31 +0000
(10:56 +0800)
committer
Jake Dallimore
<jake@moodle.com>
Mon, 12 Mar 2018 03:12:00 +0000
(11:12 +0800)
lib/xmlize.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/xmlize.php
b/lib/xmlize.php
index
ef54a6e
..
78cf82b
100644
(file)
--- a/
lib/xmlize.php
+++ b/
lib/xmlize.php
@@
-137,7
+137,7
@@
class core_xml_parser {
$level = &$this->level;
if (!empty($name)) {
if (empty($current[$level])) {
- $current[$level] =
null
;
+ $current[$level] =
''
;
} else if (array_key_exists(0, $current[$level])) {
if (count($current[$level]) == 1) {
$current[$level] = $current[$level][0]; // We remove array index if we only have a single entry.