dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5977d6e
)
Followup to r56514 r56174 empty strings are not NULL
author
OverlordQ
<overlordq@users.mediawiki.org>
Sat, 26 Dec 2009 23:15:03 +0000
(23:15 +0000)
committer
OverlordQ
<overlordq@users.mediawiki.org>
Sat, 26 Dec 2009 23:15:03 +0000
(23:15 +0000)
includes/Xml.php
patch
|
blob
|
history
diff --git
a/includes/Xml.php
b/includes/Xml.php
index
56a8adc
..
90cd1d9
100644
(file)
--- a/
includes/Xml.php
+++ b/
includes/Xml.php
@@
-43,7
+43,7
@@
class Xml {
*/
public static function expandAttributes( $attribs ) {
$out = '';
- if(
is_null
( $attribs ) ) {
+ if(
empty
( $attribs ) ) {
return null;
} elseif( is_array( $attribs ) ) {
foreach( $attribs as $name => $val )