]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug in elgg_format_attributes() that caused none string values to be ignored
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 12:20:33 +0000 (12:20 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 12:20:33 +0000 (12:20 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8152 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/output.php

index 1027991b6f8eef462964ae49cd471e5b6d9be617..ee4ed172177770d4d78fdaeab13db1042de53ee9 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_string($val))) {
+               if (is_not_null($val) && (is_array($val) || !is_object($var))) {
 
                        // allow $vars['class'] => array('one', 'two');
                        // @todo what about $vars['style']? Needs to be semi-colon separated...