X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=6977a69575eb3aa031f60cd318c9b4c9f847cd72;hb=3d87e3a86bcb39d444ef916129dd48bf80b5bb31;hp=3fea3e12c26387d009db86ed0c2992c62f33b9a4;hpb=edb4ed713cce3cb84971674556f61c9f9e4079ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 3fea3e12c2..6977a69575 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; } @@ -663,7 +664,7 @@ class Html { } /** - * Convenience function to produce an "" element. + * Convenience function to produce a