From: Thiemo Kreuz Date: Wed, 27 Mar 2019 12:54:02 +0000 (+0100) Subject: user: Remove not needed array_values() X-Git-Tag: 1.34.0-rc.0~2323^2 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=204fe4c4b110350475e84590e4a219e113d033f5;p=lhc%2Fweb%2Fwiklou.git user: Remove not needed array_values() Change-Id: I0a2321d5f363b86d01ab7ad94df920008e607390 --- diff --git a/includes/user/PasswordReset.php b/includes/user/PasswordReset.php index ef104cce5c..36a799560d 100644 --- a/includes/user/PasswordReset.php +++ b/includes/user/PasswordReset.php @@ -81,9 +81,7 @@ class PasswordReset implements LoggerAwareInterface { $resetRoutes = $this->config->get( 'PasswordResetRoutes' ); $status = StatusValue::newGood(); - if ( !is_array( $resetRoutes ) || - !in_array( true, array_values( $resetRoutes ), true ) - ) { + if ( !is_array( $resetRoutes ) || !in_array( true, $resetRoutes, true ) ) { // Maybe password resets are disabled, or there are no allowable routes $status = StatusValue::newFatal( 'passwordreset-disabled' ); } elseif (