mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
Merge "Use === operator with strpos"
This commit is contained in:
commit
10c147cb92
|
@ -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-' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue