mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Use isset() to check array element exists rather than relying on @ operator
Change-Id: I0ecdcdd1426b2e76a326bc50b6ea0ca1cbad3d22
This commit is contained in:
parent
d80a737921
commit
f3472dfdd0
|
@ -134,7 +134,7 @@ class AbuseFilterTokenizer {
|
|||
if ( preg_match( self::RADIX_RE, $code, $matches, 0, $offset ) ) {
|
||||
$token = $matches[0];
|
||||
$input = $matches[1];
|
||||
$baseChar = @$matches[2];
|
||||
$baseChar = isset( $matches[2] ) ? $matches[2] : null;
|
||||
// Sometimes the base char gets mixed in with the rest of it because
|
||||
// the regex targets hex, too.
|
||||
// This mostly happens with binary
|
||||
|
|
Loading…
Reference in a new issue