From 6dd459c8480e2cf159aebb7c8ed821580a63cb58 Mon Sep 17 00:00:00 2001 From: OverlordQ Date: Sat, 26 Dec 2009 23:15:03 +0000 Subject: [PATCH] Followup to r56514 r56174 empty strings are not NULL --- includes/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Xml.php b/includes/Xml.php index 56a8adc865..90cd1d9e63 100644 --- 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 ) -- 2.20.1