From 737ccd82c67f963ca2b20acdc348d423e5cf2509 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 6 Aug 2012 13:02:34 +0200 Subject: [PATCH] In WebRequest, don't use isset() to check that a variable is null Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd --- includes/WebRequest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } /** -- 2.20.1