From 2c383293c68045b0019dec855866e14ae0164d45 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 20 Sep 2008 03:49:48 +0000 Subject: [PATCH] Remove rage, looks unprofessional. --- includes/User.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ); } -- 2.20.1