X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLSelectNamespace.php;h=597c27a33712baad443c85af6f0b17eccb483847;hb=b892e4691db28cc8f3e14abf1929d4be546b0ead;hp=4efdfbf306febfb3ed536a14211e99ab7741040a;hpb=2994a1fb9b34f239a967f74333f41e8ab1e5b76d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLSelectNamespace.php b/includes/htmlform/HTMLSelectNamespace.php index 4efdfbf306..597c27a337 100644 --- a/includes/htmlform/HTMLSelectNamespace.php +++ b/includes/htmlform/HTMLSelectNamespace.php @@ -5,7 +5,11 @@ class HTMLSelectNamespace extends HTMLFormField { public function __construct( $params ) { parent::__construct( $params ); - $this->mAllValue = isset( $this->mParams['all'] ) ? $this->mParams['all'] : 'all'; + + $this->mAllValue = array_key_exists( 'all', $params ) + ? $params['all'] + : 'all'; + } function getInputHTML( $value ) {