From: OverlordQ Date: Sat, 26 Dec 2009 23:15:03 +0000 (+0000) Subject: Followup to r56514 r56174 empty strings are not NULL X-Git-Tag: 1.31.0-rc.0~38469 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=6dd459c8480e2cf159aebb7c8ed821580a63cb58;p=lhc%2Fweb%2Fwiklou.git Followup to r56514 r56174 empty strings are not NULL --- 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 )