From: Chad Horohoe Date: Sun, 2 Aug 2009 22:31:42 +0000 (+0000) Subject: Don't die badly if $row isn't an object. X-Git-Tag: 1.31.0-rc.0~40556 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=07dae0f184a4c2b1aade9f1c4e82cac5383730b2;p=lhc%2Fweb%2Fwiklou.git Don't die badly if $row isn't an object. --- 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; } }