mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
Check that $matches[0] is actually an array
Bug: T279148 Change-Id: I687e07f2ce6d9574d7eef0442a6968321368fb19
This commit is contained in:
parent
8e1c9e546b
commit
87ae0875be
|
@ -714,7 +714,8 @@ class SpecialReplaceText extends SpecialPage {
|
|||
}
|
||||
|
||||
$poss = [];
|
||||
foreach ( $matches[0] as $_ ) {
|
||||
$match = $matches[0] ?? [];
|
||||
foreach ( $match as $_ ) {
|
||||
$poss[] = $_[1];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue