From: Tim Starling Date: Sat, 20 Sep 2008 03:49:48 +0000 (+0000) Subject: Remove rage, looks unprofessional. X-Git-Tag: 1.31.0-rc.0~45209 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2c383293c68045b0019dec855866e14ae0164d45;p=lhc%2Fweb%2Fwiklou.git Remove rage, looks unprofessional. --- diff --git a/includes/User.php b/includes/User.php index a47065197c..dce6d30fa2 100644 --- 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 ); }