Code clarity tweak
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 18 Jan 2010 00:14:47 +0000 (00:14 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 18 Jan 2010 00:14:47 +0000 (00:14 +0000)
includes/Sanitizer.php

index 9370583..9bcc18b 100644 (file)
@@ -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,