From: Bartosz DziewoƄski Date: Wed, 16 Oct 2013 15:42:07 +0000 (+0200) Subject: Add a line of explanation to Html::expandAttributes X-Git-Tag: 1.31.0-rc.0~18504^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=ac0dc2406452bf94dfed19770a9546dd3acfefb1;p=lhc%2Fweb%2Fwiklou.git Add a line of explanation to Html::expandAttributes Change-Id: I7ad453638075a5e875c6c97df10690747c2488f0 --- 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; }