}
/**
- * @param ApiPageSet $resultPageSet
+ * @param ApiPageSet|null $resultPageSet
*/
private function run( ApiPageSet $resultPageSet = null ) {
$settings = self::$settings[$this->getModuleName()];
if ( !$titles ) {
return; // nothing to do
}
+ if ( $params['namespace'] !== null && count( $params['namespace'] ) === 0 ) {
+ return; // nothing to do
+ }
// Figure out what we're sorting by, and add associated WHERE clauses.
// MySQL's query planner screws up if we include a field in ORDER BY