diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 12:20:33 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 12:20:33 +0000 |
commit | e1a7a3190287920c96cb076803bfee1680b5dcdd (patch) | |
tree | 4b3f36fbea9c2f1aba27b1462aa067e8ae882158 /engine/lib | |
parent | 2d6e424b425c1d32b6223f0f3c6f869ef31b2e10 (diff) | |
download | elgg-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.php | 2 |
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... |