mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-28 00:20:00 +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 = [];
|
$poss = [];
|
||||||
foreach ( $matches[0] as $_ ) {
|
$match = $matches[0] ?? [];
|
||||||
|
foreach ( $match as $_ ) {
|
||||||
$poss[] = $_[1];
|
$poss[] = $_[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue