From f3fc4bbf5dfed621988ecd21f31950cbf4f7d5d0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 19 Mar 2008 23:45:18 +0000 Subject: [PATCH] hopefully don't die on non-gallery-laden pages which trigger this consistency check --- includes/CategoryPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 315d435a75..225898b797 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -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. -- 2.20.1