From 7475f3d675b70f7b00ce8ccbb3002e5178d0b187 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 18 Jan 2010 00:14:47 +0000 Subject: [PATCH] Code clarity tweak --- includes/Sanitizer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, -- 2.20.1