From 58f369557dcd5e070b42d3219777c8201aa85baf Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 31 Jul 2014 15:24:58 +0100 Subject: [PATCH] list=logevent userid is returned as string, should be integer Bug: 68921 Change-Id: Ibdc771cfc3286f8f20f64a2817a2ef01d4b1f8ad --- includes/api/ApiQueryLogEvents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index d79deec3dc..7cd8aacd19 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -403,7 +403,7 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals['user'] = $row->user_name === null ? $row->log_user_text : $row->user_name; } if ( $this->fld_userid ) { - $vals['userid'] = $row->log_user; + $vals['userid'] = intval( $row->log_user ); } if ( !$row->log_user ) { -- 2.20.1