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:
2ea241d
)
Don't die badly if $row isn't an object.
author
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 2 Aug 2009 22:31:42 +0000
(22:31 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 2 Aug 2009 22:31:42 +0000
(22:31 +0000)
maintenance/updateArticleCount.php
patch
|
blob
|
history
diff --git
a/maintenance/updateArticleCount.php
b/maintenance/updateArticleCount.php
index
3b348b5
..
ae7e5e6
100644
(file)
--- a/
maintenance/updateArticleCount.php
+++ b/
maintenance/updateArticleCount.php
@@
-93,7
+93,7
@@
class UpdateArticleCount extends Maintenance {
$res = $dbr->query( $this->makeSql( $dbr ), __METHOD__ );
$row = $dbr->fetchObject( $res );
$dbr->freeResult( $res );
- return $row
->pagecount
;
+ return $row
? $row->pagecount : false
;
}
}