aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/output.php2
1 files changed, 1 insertions, 1 deletions
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...