Removed used of resultObject() in QueryPage
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 26 Sep 2015 17:54:43 +0000 (10:54 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 26 Sep 2015 17:54:43 +0000 (10:54 -0700)
Change-Id: I7aa6902a7e1a0c93e28b209de995976d5891cdfb

includes/specialpage/QueryPage.php

index 3c8b742..bfb29ae 100644 (file)
@@ -450,14 +450,13 @@ abstract class QueryPage extends SpecialPage {
                } else {
                        $options['ORDER BY'] = 'qc_value ASC';
                }
-               $res = $dbr->select( 'querycache', array( 'qc_type',
+               return $dbr->select( 'querycache', array( 'qc_type',
                                'namespace' => 'qc_namespace',
                                'title' => 'qc_title',
                                'value' => 'qc_value' ),
                                array( 'qc_type' => $this->getName() ),
                                __METHOD__, $options
                );
-               return $dbr->resultObject( $res );
        }
 
        public function getCachedTimestamp() {