From e1a7a3190287920c96cb076803bfee1680b5dcdd Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 12:20:33 +0000 Subject: fixed bug in elgg_format_attributes() that caused none string values to be ignored git-svn-id: http://code.elgg.org/elgg/trunk@8152 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/output.php') diff --git a/engine/lib/output.php b/engine/lib/output.php index 1027991b6..ee4ed1721 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -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... -- cgit v1.2.3