Fixed "Undefined property: stdClass::$page_namespace" error
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Nov 2013 23:35:37 +0000 (15:35 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Nov 2013 23:37:06 +0000 (15:37 -0800)
* BacklinkCache::fullResultCache should always have all the columns
* Fixes bug from a9dc4d943e8f7e7824f31dc7fd1270873f8a9fdb

Change-Id: Ic0042ef6b1ce655bd97814362d95d8b0fe53affa

includes/cache/BacklinkCache.php

index dcd8191..8eed1a5 100644 (file)
@@ -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 {