]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3454 not stripping empty attributes
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 19 May 2011 23:47:32 +0000 (23:47 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 19 May 2011 23:47:32 +0000 (23:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9102 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/output.php

index 3f35a1576b051d1f59777e0c0041961eee79e2ac..04c7370620134796f99da20d440fc298a975faa6 100644 (file)
@@ -170,7 +170,7 @@ function elgg_format_attributes(array $attrs) {
                }
 
                // ignore $vars['entity'] => ElggEntity stuff
-               if (is_not_null($val) && (is_array($val) || !is_object($val))) {
+               if ($val !== NULL && $val !== false && (is_array($val) || !is_object($val))) {
 
                        // allow $vars['class'] => array('one', 'two');
                        // @todo what about $vars['style']? Needs to be semi-colon separated...