dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d50beb6
)
sanity check
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 11 Sep 2005 12:31:59 +0000
(12:31 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 11 Sep 2005 12:31:59 +0000
(12:31 +0000)
includes/LinkCache.php
patch
|
blob
|
history
diff --git
a/includes/LinkCache.php
b/includes/LinkCache.php
index
57903dd
..
7d19214
100644
(file)
--- 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 ) {