From ddaffed3177c766ffae75d81caa5cc99a1514b16 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 19 Nov 2013 15:35:37 -0800 Subject: [PATCH] Fixed "Undefined property: stdClass::$page_namespace" error * BacklinkCache::fullResultCache should always have all the columns * Fixes bug from a9dc4d943e8f7e7824f31dc7fd1270873f8a9fdb Change-Id: Ic0042ef6b1ce655bd97814362d95d8b0fe53affa --- includes/cache/BacklinkCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index dcd81918f5..8eed1a50e1 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -223,7 +223,7 @@ class BacklinkCache { ); } - if ( !$startId && !$endId && $res->numRows() < $max ) { + if ( $select === 'all' && !$startId && !$endId && $res->numRows() < $max ) { // The full results fit within the limit, so cache them $this->fullResultCache[$table] = $res; } else { -- 2.20.1