From: Sam Reed Date: Thu, 4 Feb 2010 18:12:01 +0000 (+0000) Subject: array_flip() as per r61760#c5615 (follow up to r61760) X-Git-Tag: 1.31.0-rc.0~37931 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=aed9f28554eedc2086d4952603a057a1ccc7dda2;p=lhc%2Fweb%2Fwiklou.git array_flip() as per r61760#c5615 (follow up to r61760) --- 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'] );