Followup r94465; Don't use empty.
authorDaniel Friesen <dantman@users.mediawiki.org>
Sun, 25 Sep 2011 02:24:47 +0000 (02:24 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sun, 25 Sep 2011 02:24:47 +0000 (02:24 +0000)
includes/Sanitizer.php

index 227fa7c..83cd5fd 100644 (file)
@@ -674,7 +674,7 @@ class Sanitizer {
                        unset( $attribs[$attribute] );
                }
                
-               if ( !empty($style) ) {
+               if ( $style ) {
                        // Prepend our style rules so that they can be overridden by user css
                        if ( isset($attribs['style']) ) {
                                $style .= " " . $attribs['style'];