array_flip() as per r61760#c5615 (follow up to r61760)
authorSam Reed <reedy@users.mediawiki.org>
Thu, 4 Feb 2010 18:12:01 +0000 (18:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 4 Feb 2010 18:12:01 +0000 (18:12 +0000)
includes/api/ApiQueryLogEvents.php

index e2c4b49..a0c1c4f 100644 (file)
@@ -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'] );