Don't die badly if $row isn't an object.
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 2 Aug 2009 22:31:42 +0000 (22:31 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 2 Aug 2009 22:31:42 +0000 (22:31 +0000)
maintenance/updateArticleCount.php

index 3b348b5..ae7e5e6 100644 (file)
@@ -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;
        }
 }