From 204fe4c4b110350475e84590e4a219e113d033f5 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Wed, 27 Mar 2019 13:54:02 +0100 Subject: [PATCH] user: Remove not needed array_values() Change-Id: I0a2321d5f363b86d01ab7ad94df920008e607390 --- includes/user/PasswordReset.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ( -- 2.20.1