X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinksUpdate.php;h=0712ac807bf31fcde527b4eb4affa1afc7d48904;hb=c29fd59775f597847a57f598a76de48c63952243;hp=8b403fcd85da77a1334b9272d9bdc4edec92f40e;hpb=ee0d3d330f76b97c451c168dc9b052ee84609b5b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 8b403fcd85..0712ac807b 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -66,6 +66,10 @@ class LinksUpdate extends SqlDataUpdate { $this->mTitle = $title; $this->mId = $title->getArticleID(); + if ( !$this->mId ) { + throw new MWException( "The Title object did not provide an article ID. Perhaps the page doesn't exist?" ); + } + $this->mParserOutput = $parserOutput; $this->mLinks = $parserOutput->getLinks(); $this->mImages = $parserOutput->getImages();