X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLCheckField.php;h=0a1024c4b1062f4eb36712d916a5a083ec6c03a8;hb=33415e2930b8e583fe81ec026608c0af523f7afe;hp=aad9f6e9d2119435296cd817b44a4b365e927ab3;hpb=fc17ad555c430ece410264ecbd2d425765e720d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLCheckField.php b/includes/htmlform/fields/HTMLCheckField.php index aad9f6e9d2..0a1024c4b1 100644 --- a/includes/htmlform/fields/HTMLCheckField.php +++ b/includes/htmlform/fields/HTMLCheckField.php @@ -119,7 +119,7 @@ class HTMLCheckField extends HTMLFormField { // Fetch the value in either one of the two following case: // - we have a valid submit attempt (form was just submitted) // - we have a value (an URL manually built by the user, or GET form with no wpFormIdentifier) - if ( $this->isSubmitAttempt( $request ) || $request->getVal( $this->mName ) !== null ) { + if ( $this->isSubmitAttempt( $request ) || $request->getCheck( $this->mName ) ) { return $invert ? !$request->getBool( $this->mName ) : $request->getBool( $this->mName );