From: Aryeh Gregor Date: Mon, 18 Jan 2010 00:14:47 +0000 (+0000) Subject: Code clarity tweak X-Git-Tag: 1.31.0-rc.0~38220 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=7475f3d675b70f7b00ce8ccbb3002e5178d0b187;p=lhc%2Fweb%2Fwiklou.git Code clarity tweak --- diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 937058330f..9bcc18b610 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -935,12 +935,11 @@ class Sanitizer { * @return Array */ public static function decodeTagAttributes( $text ) { - $attribs = array(); - if( trim( $text ) == '' ) { - return $attribs; + return array(); } + $attribs = array(); $pairs = array(); if( !preg_match_all( MW_ATTRIBS_REGEX,