From: Tim Starling Date: Sun, 11 Sep 2005 12:31:59 +0000 (+0000) Subject: sanity check X-Git-Tag: 1.6.0~1676 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=eec6c4b5ce2e2182ca56c425c24688c64eaa586f;p=lhc%2Fweb%2Fwiklou.git sanity check --- diff --git a/includes/LinkCache.php b/includes/LinkCache.php index 57903ddc38..7d192140fd 100644 --- a/includes/LinkCache.php +++ b/includes/LinkCache.php @@ -363,7 +363,11 @@ class LinkBatch { } function addObj( $title ) { - $this->add( $title->getNamespace(), $title->getDBkey() ); + if ( is_object( $title ) ) { + $this->add( $title->getNamespace(), $title->getDBkey() ); + } else { + wfDebug( "Warning: LinkBatch::addObj got invalid title object\n" ); + } } function add( $ns, $dbkey ) {