Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -42,8 +42,9 @@ |
43 | 43 | public function execute() { |
44 | 44 | $params = $this->extractRequestParams(); |
45 | 45 | $db = $this->getDB(); |
46 | | - |
47 | | - $prop = $params['prop']; |
| 46 | + |
| 47 | + $prop = array_flip( $params['prop'] ); |
| 48 | + |
48 | 49 | $this->fld_ids = isset( $prop['ids'] ); |
49 | 50 | $this->fld_title = isset( $prop['title'] ); |
50 | 51 | $this->fld_type = isset( $prop['type'] ); |