From 0351087ae42eef5f465e32d56a1fe2dce0520eee Mon Sep 17 00:00:00 2001 From: Jeff Cardwell Date: Thu, 21 Nov 2019 11:22:46 -0600 Subject: [PATCH] prevent empty parameters from being converted to empty arrays --- bem.function.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/bem.function.php b/bem.function.php index e93e34a..0f3f35f 100644 --- a/bem.function.php +++ b/bem.function.php @@ -1,7 +1,8 @@ $value) { + foreach ($context['attributes'] as $key => $value) { // If there are classes, add them to the classes array. if ($key === 'class') { foreach ($value as $class) { @@ -99,4 +100,4 @@ return $attributes; } -}, array('needs_context' => true, 'is_safe' => array('html'))); +}, array('needs_context' => TRUE, 'is_safe' => array('html')));