From 335535eca73865086c0756329f688d3c37c408bb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 27 Feb 2013 22:13:25 -0600 Subject: [PATCH] fix class name. --- HtmlBuilder.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HtmlBuilder.php b/HtmlBuilder.php index c7cf424..42ea738 100644 --- a/HtmlBuilder.php +++ b/HtmlBuilder.php @@ -1,6 +1,6 @@ $value) { - $html[] = static::attributeElement($key, $value); + $element = static::attributeElement($key, $value); + + if ( ! is_null($element)) $html[] = $element; } return count($html) > 0 ? ' '.implode(' ', $html) : '';