From c60017bfcb7115b0250db959004aa32fa37cf419 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 31 Jan 2010 22:28:27 +0000 Subject: [PATCH] in_array to isset on ApiQueryLogEvents as per (most?) rest of the API --- includes/api/ApiQueryLogEvents.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 86d48e6ca3..ea92260dbf 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -44,14 +44,14 @@ class ApiQueryLogEvents extends ApiQueryBase { $db = $this->getDB(); $prop = $params['prop']; - $this->fld_ids = in_array( 'ids', $prop ); - $this->fld_title = in_array( 'title', $prop ); - $this->fld_type = in_array( 'type', $prop ); - $this->fld_user = in_array( 'user', $prop ); - $this->fld_timestamp = in_array( 'timestamp', $prop ); - $this->fld_comment = in_array( 'comment', $prop ); - $this->fld_details = in_array( 'details', $prop ); - $this->fld_tags = in_array( 'tags', $prop ); + $this->fld_ids = isset( $prop['ids' ); + $this->fld_title = isset( $prop['title' ); + $this->fld_type = isset( $prop['type' ); + $this->fld_user = isset( $prop['user' ); + $this->fld_timestamp = isset( $prop['timestamp' ); + $this->fld_comment = isset( $prop['comment' ); + $this->fld_details = isset( $prop['details' ); + $this->fld_tags = isset( $prop['tags' ); list( $tbl_logging, $tbl_page, $tbl_user ) = $db->tableNamesN( 'logging', 'page', 'user' ); -- 2.20.1