From ac0dc2406452bf94dfed19770a9546dd3acfefb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 16 Oct 2013 17:42:07 +0200 Subject: [PATCH] Add a line of explanation to Html::expandAttributes Change-Id: I7ad453638075a5e875c6c97df10690747c2488f0 --- includes/Html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Html.php b/includes/Html.php index 3fea3e12c2..932f753e92 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -422,6 +422,7 @@ class Html { $ret = ''; $attribs = (array)$attribs; foreach ( $attribs as $key => $value ) { + // Support intuitive array( 'checked' => true/false ) form if ( $value === false || is_null( $value ) ) { continue; } -- 2.20.1