dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
617d0f0
)
In WebRequest, don't use isset() to check that a variable is null
author
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Mon, 6 Aug 2012 11:02:34 +0000
(13:02 +0200)
committer
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Mon, 6 Aug 2012 11:02:34 +0000
(13:02 +0200)
Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd
includes/WebRequest.php
patch
|
blob
|
history
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
91bd923
..
26b943c
100644
(file)
--- 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;
}
/**