mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
Merge "Harden Definitions::insertCommunityPortal() method"
This commit is contained in:
commit
c3ebb6824a
|
@ -309,7 +309,7 @@ final class Definitions {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$title = Title::newFromText( $titleName );
|
$title = Title::newFromText( $titleName );
|
||||||
if ( !$title->exists() ) {
|
if ( $title === null || !$title->exists() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue