array_flip() as per r61760#c5615 (follow up to r61760)
This commit is contained in:
parent
3d3d3f3ac9
commit
aed9f28554
1 changed files with 3 additions and 2 deletions
|
|
@ -42,8 +42,9 @@ class ApiQueryLogEvents extends ApiQueryBase {
|
|||
public function execute() {
|
||||
$params = $this->extractRequestParams();
|
||||
$db = $this->getDB();
|
||||
|
||||
$prop = $params['prop'];
|
||||
|
||||
$prop = array_flip( $params['prop'] );
|
||||
|
||||
$this->fld_ids = isset( $prop['ids'] );
|
||||
$this->fld_title = isset( $prop['title'] );
|
||||
$this->fld_type = isset( $prop['type'] );
|
||||
|
|
|
|||
Loading…
Reference in a new issue