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
(parent:
574c459
)
Remove rage, looks unprofessional.
author
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 20 Sep 2008 03:49:48 +0000
(
03:49
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 20 Sep 2008 03:49:48 +0000
(
03:49
+0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
a470651
..
dce6d30
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2003,10
+2003,8
@@
class User {
// In the spirit of DWIM
return true;
- // PHP is fucking stupid.
- // > $f = array( 'foo', 'bar', 'baz', 0, 'anne' );
- // > print in_array( 'blah', $f );
- // 1
+ # Use strict parameter to avoid matching numeric 0 accidentally inserted
+ # by misconfiguration: 0 == 'foo'
return in_array( $action, $this->getRights(), true );
}