From aed9f28554eedc2086d4952603a057a1ccc7dda2 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 4 Feb 2010 18:12:01 +0000 Subject: [PATCH] array_flip() as per r61760#c5615 (follow up to r61760) --- includes/api/ApiQueryLogEvents.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index e2c4b49971..a0c1c4ffcd 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -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'] ); -- 2.20.1