hopefully don't die on non-gallery-laden pages which trigger this consistency check

This commit is contained in:
Brion Vibber 2008-03-19 23:45:18 +00:00
parent 1f17a10396
commit f3fc4bbf5d

View file

@ -484,7 +484,7 @@ class CategoryViewer {
# know the right figure.
# 3) We have no idea.
$totalrescnt = count( $this->articles ) + count( $this->children ) +
$this->gallery->count();
($this->showGallery ? $this->gallery->count() : 0);
if($dbcnt == $rescnt || (($totalrescnt == $this->limit || $this->from
|| $this->until) && $dbcnt > $rescnt)){
# Case 1: seems sane.