aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 12:20:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 12:20:33 +0000
commite1a7a3190287920c96cb076803bfee1680b5dcdd (patch)
tree4b3f36fbea9c2f1aba27b1462aa067e8ae882158 /engine/lib
parent2d6e424b425c1d32b6223f0f3c6f869ef31b2e10 (diff)
downloadelgg-e1a7a3190287920c96cb076803bfee1680b5dcdd.tar.gz
elgg-e1a7a3190287920c96cb076803bfee1680b5dcdd.tar.bz2
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
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...