Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -44,14 +44,14 @@ |
45 | 45 | $db = $this->getDB(); |
46 | 46 | |
47 | 47 | $prop = $params['prop']; |
48 | | - $this->fld_ids = in_array( 'ids', $prop ); |
49 | | - $this->fld_title = in_array( 'title', $prop ); |
50 | | - $this->fld_type = in_array( 'type', $prop ); |
51 | | - $this->fld_user = in_array( 'user', $prop ); |
52 | | - $this->fld_timestamp = in_array( 'timestamp', $prop ); |
53 | | - $this->fld_comment = in_array( 'comment', $prop ); |
54 | | - $this->fld_details = in_array( 'details', $prop ); |
55 | | - $this->fld_tags = in_array( 'tags', $prop ); |
| 48 | + $this->fld_ids = isset( $prop['ids' ); |
| 49 | + $this->fld_title = isset( $prop['title' ); |
| 50 | + $this->fld_type = isset( $prop['type' ); |
| 51 | + $this->fld_user = isset( $prop['user' ); |
| 52 | + $this->fld_timestamp = isset( $prop['timestamp' ); |
| 53 | + $this->fld_comment = isset( $prop['comment' ); |
| 54 | + $this->fld_details = isset( $prop['details' ); |
| 55 | + $this->fld_tags = isset( $prop['tags' ); |
56 | 56 | |
57 | 57 | list( $tbl_logging, $tbl_page, $tbl_user ) = $db->tableNamesN( 'logging', 'page', 'user' ); |
58 | 58 | |