In WebRequest, don't use isset() to check that a variable is null
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 6 Aug 2012 11:02:34 +0000 (13:02 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 6 Aug 2012 11:02:34 +0000 (13:02 +0200)
Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd

includes/WebRequest.php

index 91bd923..26b943c 100644 (file)
@@ -498,8 +498,7 @@ class WebRequest {
        public function getCheck( $name ) {
                # Checkboxes and buttons are only present when clicked
                # Presence connotes truth, abscense false
-               $val = $this->getVal( $name, null );
-               return isset( $val );
+               return $this->getVal( $name, null ) !== null;
        }
 
        /**