diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-19 23:47:32 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-19 23:47:32 +0000 |
commit | f158c3117196a61641e1c2dc9539a5ba573515c1 (patch) | |
tree | 40b5b598bbd74c0f3d4e0857736839d988b2d7de /engine/lib/output.php | |
parent | 7ee9c7cacbe5da9ecc8c5bb8d3ba51be3ce1d30a (diff) | |
download | elgg-f158c3117196a61641e1c2dc9539a5ba573515c1.tar.gz elgg-f158c3117196a61641e1c2dc9539a5ba573515c1.tar.bz2 |
Fixes #3454 not stripping empty attributes
git-svn-id: http://code.elgg.org/elgg/trunk@9102 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/output.php')
-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 3f35a1576..04c737062 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_object($val))) { + if ($val !== NULL && $val !== false && (is_array($val) || !is_object($val))) { // allow $vars['class'] => array('one', 'two'); // @todo what about $vars['style']? Needs to be semi-colon separated... |