r61983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61982‎ | r61983 | r61984 >
Date:18:12, 4 February 2010
Author:reedy
Status:ok
Tags:
Comment:
array_flip() as per r61760#c5615 (follow up to r61760)
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryLogEvents.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryLogEvents.php
@@ -42,8 +42,9 @@
4343 public function execute() {
4444 $params = $this->extractRequestParams();
4545 $db = $this->getDB();
46 -
47 - $prop = $params['prop'];
 46+
 47+ $prop = array_flip( $params['prop'] );
 48+
4849 $this->fld_ids = isset( $prop['ids'] );
4950 $this->fld_title = isset( $prop['title'] );
5051 $this->fld_type = isset( $prop['type'] );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61760in_array to isset on ApiQueryLogEvents as per (most?) rest of the APIreedy22:28, 31 January 2010

Status & tagging log