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