From 07dae0f184a4c2b1aade9f1c4e82cac5383730b2 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 2 Aug 2009 22:31:42 +0000 Subject: [PATCH] Don't die badly if $row isn't an object. --- maintenance/updateArticleCount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index 3b348b53d4..ae7e5e6ea8 100644 --- 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; } } -- 2.20.1