From: Alexandre Emsenhuber Date: Mon, 6 Aug 2012 11:02:34 +0000 (+0200) Subject: In WebRequest, don't use isset() to check that a variable is null X-Git-Tag: 1.31.0-rc.0~22836 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=737ccd82c67f963ca2b20acdc348d423e5cf2509;p=lhc%2Fweb%2Fwiklou.git In WebRequest, don't use isset() to check that a variable is null Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 91bd9237f1..26b943ca60 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -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; } /**