Merge "Use === operator with strpos"

This commit is contained in:
jenkins-bot 2018-08-25 21:28:28 +00:00 committed by Gerrit Code Review
commit 10c147cb92

View file

@ -807,7 +807,7 @@ class AbuseFilter {
* @return string|bool
*/
public static function decodeGlobalName( $filter ) {
if ( strpos( $filter, 'global-' ) == 0 ) {
if ( strpos( $filter, 'global-' ) === 0 ) {
return substr( $filter, strlen( 'global-' ) );
}